Questions tagged [node-supervisor]

A supervisor script for nodejs. It runs your program, and watches for code changes, so you can have hot-code reloading behavior, without worrying about memory leaks and making sure you clean up all the inter-module references, and without a whole new require system.

A supervisor script for nodejs. It runs your program, and watches for code changes, so you can have hot-code reloading behavior, without worrying about memory leaks and making sure you clean up all the inter-module references, and without a whole new require system.

24 questions
18
votes
2 answers

Node.js: Check if file is an symbolic link when iterating over directory with 'fs'

Supervisor is a package for Node.js that monitors files in your app directory for modifications and reloads the app when a modification occurs. This script interprets symbolic links as regular files and logs out a warning. I would like to fork…
james_womack
  • 9,456
  • 6
  • 50
  • 72
17
votes
5 answers

Run node.js application in debug with supervisor

I am using supervisor to auto-reload my node.js, e.g. supervisor -w . app.js However I can't work out how to get supervisor to run the node.js process in debug, e.g. the equivalent to node --debug app.coffee Anyone got any ideas?
James Hollingworth
  • 13,192
  • 12
  • 37
  • 56
15
votes
4 answers

How can I pass arguments to the executable in nodemon (or node-supervisor)?

node can be run with a debug parameter like this $ node --debug src/file.js I can also pass that parameter through the coffee-script binary like this $ coffee --nodejs --debug src/file.coffee Which works. But things get more difficult when I…
Hubro
  • 48,322
  • 60
  • 196
  • 344
12
votes
4 answers

Nodemon is not working in Docker environment

I'm using Docker with fig to build NodeJS dev-env. While I using nodemon to watch the server.js, changing server.js won't restart the server. CMD ["nodemon", "/nodeapp/server.js"] But while I changed from nodemon to supervisor, then it worked! CMD…
kerkerj
  • 123
  • 1
  • 1
  • 6
11
votes
2 answers

WebStorm, using Node Supervisor (so do not have to restart after each code change)?

I'm using WebStorm as my node IDE and love it overall but I haven't been able to figure out how to use node supervisor when running node through WebStorm. Has anyone gotten this to work? I think I'm just not sure how to pass through the supervisor…
Rick
  • 15,305
  • 33
  • 106
  • 160
10
votes
1 answer

Make supervisor ignore js updates in public directory

I have a node app which has a /public subdirectory that has just static files in it (js, css, html, etc) along with scss files which need to be compiled I am running my app by typing sudo supervisor -n error -e js,json,scss,jade -p 1000 app which…
RobKohr
  • 5,745
  • 7
  • 40
  • 58
8
votes
3 answers

Supervisor node .js "Program node app exited with code 0" error

When I install an express scaffold app express Then run the npm install npm install and then run supervisor supervisor app I get Starting child process with 'node app' Program node app exited with code 0 The app.js file is a basic default…
William
  • 3,608
  • 11
  • 41
  • 85
6
votes
3 answers

Why can't i npm install nodemon or supervisor on OSX 10.8.4?

I'm just trying to install nodemon or supervisor using terminal, and I keep getting this error which I don't understand. I tried running as the administrator with sudo npm install supervisor -g which seemed to work, but than didn't when i…
Squirrl
  • 3,870
  • 9
  • 41
  • 75
4
votes
2 answers

How do I start node.js+supervisor on boot?

After installing and setting up node.js on my development VM running Ubuntu 11.10, I would like supervisor to start automatically on boot, calling and reloading node.js when needed. Below snippet works well when ran by my default user in terminal,…
Industrial
  • 36,181
  • 63
  • 182
  • 286
3
votes
1 answer

Node Supervisor exited with code 0

I've just started getting into node.js, running through a few tutorials. I'm just trying out node-supervisor, but am having some trouble getting it running. I'm using express to set up an app, then installing the supervisor package. Starting the App…
xeem
  • 31
  • 3
3
votes
1 answer

Node.js don't restart server when changing .js files?

I'm currently using node-supervisor so that node picks up .js changes, it works good but I've noticed it restarts the server everytime I save a js file. Is there a way to save a server-side .js file but not restart the server, yet have the changes…
Shai UI
  • 45,518
  • 63
  • 187
  • 278
2
votes
1 answer

Node.js: Identifying the file that is modified for automated test case execution

I currently use nodemon or supervisor for automatic server restarting and automatic test cases execution. But currently my requirement is to run specific test cases when certain files are changed. For example if app\models\user.js is modified, I…
Rahul
  • 38,533
  • 23
  • 65
  • 94
1
vote
1 answer

Prevent developers from unintentionally killing daemon / worker processes on local machine

A lot of newbs will kill all their node.js processes on their local machines with pkill -f node Or killall node Etc. I have a library that uses some daemon processes/workers running on the developer's machine and I will need to restart them if the…
user5047085
1
vote
1 answer

nodemon, supervisor, forever all are giving different errors, Any suggestions?

i have tried all the three one by one by installing them globally. but none seems to work. I am using these to restart the server automatically when i make any changes. Following are the commands that i am using. nodemon npm start forever npm…
Ankur Marwaha
  • 975
  • 9
  • 21
1
vote
1 answer

Auto reload with supervisor in express.js

My package.json { "name": "lays-vroubek", "version": "0.0.0", "private": true, "scripts": { "start": "supervisor ./bin/www" }, "dependencies": { "body-parser": "~1.13.2", "cookie-parser": "~1.3.5", "debug": "~2.2.0", …
JOb
  • 11
  • 2
1
2