Giter VIP home page Giter VIP logo

Comments (4)

aenario avatar aenario commented on August 26, 2024

Hi @Phyks ,

Cozy-dev deploy only work for server-side application.

To test client-side application, the easiest way is to use the cozy-dev client-app-proxy <url> command with an online cozy. (like cd my-app && cozy-dev client-app-proxy https://mycozy.cozycloud.cc)

Due to a bug, it unfortunately does not work with the dev VM. We will fix this soon.

Thanks,
Romain

from cozy-dev.

Phyks avatar Phyks commented on August 26, 2024

@aenario Thanks for the input, however I still did not manage to get it working ='(

  • First, the doc for the deploy command states:

    deploy [slug] Push code and deploy app located in current directory to your virtualbox. Argument port correspond to port used by your application, or to the path containing your built static assets for a server-less app.

Not sure what this was supposed to mean, but it made me think I should use the command in my first post for a client app ("server-less"). I think this string should be updated if this is not the case :)

  • client-app-proxy is not available in the NPM version of cozy-dev. I cloned the repository and built it, and when starting it, I got a "Not found" in the newly opened browser window. I guess this is because my package.json is at the root of the repo but the built files (and hence the app) are under dist, and I cannot specify it where to look for those files.

If you need to have a deeper look at my app structure (maybe I missed something and it is not supposed to have this layout), it is at https://github.com/Phyks/cozy-RSVP.

Thanks!

from cozy-dev.

Phyks avatar Phyks commented on August 26, 2024

@aenario @m4dz So, I managed to get the deploy working with a client-side app (cozy-music). The issue was that the Vagrantfile was not in one of the parent directory. I think there should be some doc on it and a more explicit error here if dir is undefined/null.

Everything seems to be working fine except the undeploy which is without any effect. I also got a bunch of "an update is available" notifications for the deployed app, but I am not sure where this is coming from.

EDIT: It seems one has to reboot the VM to get the deploy working though.

from cozy-dev.

m4dz avatar m4dz commented on August 26, 2024

Thanks a lot @Phyks, I dully note it for my current work on cozy-dev proxy 😉

from cozy-dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.