Run your server with nodemon instead of node. It will scan for filesystem changes and restart node automatically when a change is made.
$ sudo npm install nodemon $ nodemon app.js
Adventures in Computer Programming – bakert@gmail.com
Run your server with nodemon instead of node. It will scan for filesystem changes and restart node automatically when a change is made.
$ sudo npm install nodemon $ nodemon app.js