cozy/cozy-monitor — pull request #46 by poupotte (2014-10-16 07:07:11+00:00)
Title: Add 'start-standalone' function

Start-standalone function allows to start an application without controller in a production environment. This function should be executed in application directory.

* Recover manifest (with application permissions)
* Generate a temporary token
* Add/Replace application in database (usefull for cozy stack)
* Reset proxy
* Add environment variables (NAME, TOKEN and NODE_ENV)
* Start application
* When application is stopped (via a Ctrl-C) :
* Stop application
* Remove application from database (usefull for cozy stack)
* Reset Proxy