Alex Zeitler

No more leaky abstractions.

Restarting node.js server automatically when source code changes

During development, you’re constantly changing your source files. Normally that would require you to call something like

1
$ node server.js

everytime you change one of your source files.

A simple workaround is to

1
$ sudo npm install supervisor -g

Now you run

1
$ supervisor server.js

Only once and everytime your source code changes, your development server gets restarted by supervisor automatically.

Comments