deva does the following:
- starts server.js
- restarts server.js on file changes
Just run it in the directory where your server.js can be found.
To get the automatic reload working, do two things:
if (process.send) process.send('online')in the callback for your server's listen method.
- Include the following somewhere on the client side (or simply
npm install -g deva
The default port for deva, 1028, can be overridden with a port variable in the global section of the config file or with a PORT environment variable. 1028 was chosen to match the number of hymns in the Rig Veda. Apologies if that port is already used by Windows DCOM on your system.