Node.js automatic code reload with node-supervisor
node-supervisor is handy script for developing node apps. Adds Flask like behavior to node.js - source code is reloaded after change, so no more manual restarts are needed.
Install:
npm install supervisor -g
Run:
supervisor -n exit app.js
Use "-n exit" so the code is reloaded only once after error/exit, so error in your code will not cause infinite reloading loop. Instead of the loop, supervisor will wait until another change in code is made to reload again.












