cozy / cozy-dev

Archived - Please use https://github.com/CPatchane/create-cozy-app
http://cozy.io
Other
17 stars 12 forks source link

Support server-less apps deploy #84

Closed m4dz closed 8 years ago

m4dz commented 8 years ago

This PR let devs now deploy server-less apps like std apps. Simply use the deploy command but pass the path to the built assets instead of a port number. E.g.:

$ cozy-dev deploy public    # map `public` folder as root for my-app
$ cozy-dev deploy .         # map current folder as root
$ cozy-dev deploy . foo     # map current folder as root and deploy app under the slug `foo`

The undeploy command works as well.

Note: your app must be available in the /vagrant folder (i.e. in a subdir behing the dir containing the Vagrantfile in your host) to let mapping works.

clochix commented 8 years ago

Shouldn't we add this to some documentation, before forgetting it? Ping @jsilvestre

m4dz commented 8 years ago

@clochix yep, true.

@jsilvestre what's the best place? Readme? Doc? Both?