node-supervisor (1) Linux Manual Page
- Node Supervisor is used to restart programs when they crash.
It can also be used to restart programs when a *.js file changes.
- Usage:
supervisor [options] <program>
Required:
supervisor [options] — <program> [args …]<program>
Options:
The program to run.-w|–watch <watchItems>
A comma-delimited list of folders or js files to watch for changes.
When a change to a js file occurs, reload the program
Default is ‘.’- -i|–ignore <ignoreItems>
A comma-delimited list of folders to ignore for changes.
-p|–poll-interval <milliseconds>
No defaultHow often to poll watched files for changes.
-e|–extensions <extensions>
Defaults to Node default.Specific file extensions to watch in addition to defaults.
-x|–exec <executable>
Used when –watch option includes folders
Default is ‘node,js’The executable that runs the specified program.
–debug
Default is ‘node’Start node with –debug flag.
–debug-brk[=port]Start node with –debug-brk[=port] flag.
–harmonyStart node with –harmony flag.
-n|–no-restart-on error|exitDon’t automatically restart the supervised program if it ends.
–force-watch
Supervisor will wait for a change in the source files.
If "error", an exit code of 0 will still restart.
If "exit", no restart regardless of exit code.Use fs.watch instead of fs.watchFile.
-h|–help|-?
This may be useful if you see a high cpu load on a windows machine.Display these usage instructions.
-q|–quietSuppress DEBUG messages
-V|–verboseShow extra DEBUG messages
Examples:supervisor myapp.js
supervisor myapp.coffee
supervisor -w scripts -e myext -x myrunner myapp
supervisor — server.js -h host -p port
- -i|–ignore <ignoreItems>
