Comments (4)
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.
@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 ofcozy-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 mypackage.json
is at the root of the repo but the built files (and hence the app) are underdist
, 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.
- (Related) having a link to these in https://dev.cozy.io/clientsideapp.html#create-a-client-side-application-for-cozy would be really helpful !
Thanks!
from cozy-dev.
@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.
Thanks a lot @Phyks, I dully note it for my current work on cozy-dev proxy
😉
from cozy-dev.
Related Issues (20)
- deploy should output the access URL HOT 1
- image: CouchDB's version is 1.2.1, we use 1.4.0 in production
- cozy-deploy should do a undeploy (clear) before it runs HOT 3
- Status at the end vm start seems broken. HOT 5
- Imagemagick isnt installed in vm. HOT 1
- error when "vagrant up" HOT 3
- Stop vm:start when there is a problem
- Logs when a new image version is avaible can be dangerous
- cozy-dev deploy should check the VM is running HOT 1
- Remove GRUB in image
- Add mailcatcher to VM dev HOT 2
- Reinstalll stack applications
- Port redirection for mailcatcher isn't configured in 2.0.0 HOT 1
- Expose mailcatcher to the outside world HOT 2
- Indexer's status is wrong since Indexer HTTP server has been removed HOT 2
- Add a manifest generator
- Prevent destroy basebox when destroying VM
- Explicitly require virtualization (BIOS setting) in set up dev env doc HOT 2
- cozy-dev proxify doesn't work HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cozy-dev.