For someone who is coming from PHP background the process of killing node and starting it again after every code change, seems very tedious. Is there any flag when starting
Various NPM packages are available to make this task easy.
For Development
For Production (with extended functionality such as clustering, remote deploy etc.)
npm install -g pm2
npm install -g strongloop
Comparison between Forever, pm2 and StrongLoop can be found on StrongLoop's website.
I use runjs
like:
runjs example.js
The package is called just run
npm install -g run