Closed wvl closed 12 years ago
other than the tweaks +1
Okay, I made the parameters mandatory, and added a note to the README.
Note that for some reason, debug mode is forced on: process.env.DEBUG = (process.env.DEBUG ? ',' : '') + 'up,up-cli';
ah I didn't see that
up
CLI was mostly meant for development. If you guys think it's useful for production as well, we should add pidfile + make the forced DEBUG only for NODE_ENV = 'development'
.
My worry is that the CLI interface could become infinitely complex.
@guille What do you guys then use for production? I am using Node's core cluster module for forking workers currently, but that does not support zero downtime restart etc. Should I be tackling this zero downtime problem on a load balancer level?
Installed up
just now and wondered why the CLI didn't have a --pidfile option while the documentation says it does... :)
Oops.
On Sunday, March 4, 2012, Samori Gorse < reply@reply.github.com> wrote:
Installed
up
just now and wondered why the CLI didn't have a --pidfile option while the documentation says it does... :)
Reply to this email directly or view it on GitHub: https://github.com/LearnBoost/up/pull/12#issuecomment-4314643
Guillermo Rauch LearnBoost CTO http://devthought.com
By writing the pid to a file, it's easier to automate a restart, since then it's just: