Reloading Node Apps Quickly During Development - Supervisor
When dealing with node apps you will often need to make small changes and then test out these small changes. When first starting out you will likely kill your running node process and restart your node process. This will quickly become tedious. A good solution for live reloading after making code changes is Supervisor
You can install supervisor with the following command.
npm install supervisor -g
// or...
// most likely you will need sudo if you are on a mac
sudo npm install supervisor -g
Then to run your node application you will type supervisor app.js
instead of node app.js
, assuming app.js is the entry point into your application.