andrewrk / naught

Zero downtime deployment for your Node.js server using builtin cluster API
MIT License
792 stars 69 forks source link

dev mode (watch for file changes) #20

Closed hampsterx closed 11 years ago

hampsterx commented 11 years ago

Similar to forever -w

Pretty please :)

vicary commented 11 years ago

+1 If there is a solution/alternatives to fs.watch()

A few things to consider.

  1. fs.watch() is unreliable, said the docs.
  2. hence, authors has to think twice when including this in libraries.
  3. when naught run only one file, why wouldn't you write a simple fs.watch() yourself and restart the process on change?
andrewrk commented 11 years ago

naught is made for running in production. in development I suggest you use https://github.com/fgnass/node-dev/

My mind is open though. Is there a reason to use naught for development instead of node-dev?

hampsterx commented 11 years ago

Simply want to use the same software in development to our environments (dev,testing,prod). The less deviations the better/easier to deploy/manage infrastructure wise.

andrewrk commented 11 years ago

After thinking about it for a while I decided that this is not something that naught will do.