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
1
vote
1 answer

which signal did supervisor send to express.js to restart the server

All: [UPDATE]: Some posts mentioned that: In windows, there is no signal mechanism, so "SIGINT" can not work in Windows Node.js I got one question when I deal with express termination: I want to detect the shutdown signal of express server, so I set…
Kuan
  • 10,085
  • 18
  • 76
  • 168
1
vote
1 answer

node-supervisor not starting my node server

If I run (from within my project dir): supervisor javascripts/index.js I get: /usr/bin/env: node: No such file or directory If I run: node javascripts/index.js It starts up my server properly. Does anyone know what I may be doing wrong, or…
Joren
  • 8,851
  • 17
  • 60
  • 97
1
vote
1 answer

rerun mocha using supervisor... on windows

I am trying to rerun mocha tests using supervisor. I have tried: supervisor node_modules\.bin\mocha It goes into loop with error: basedir=`dirname "$0"` Suggestions?
Larry Eitel
  • 1,337
  • 5
  • 17
  • 35
0
votes
1 answer

Apply a User-defined Force on a Solid Node in Webots

I have been trying to add a 5KN force on the solid node named 'LLarm' on a robot in Webots from a matlab code using this function: void wb_supervisor_node_add_force('LLarm', 5000, true) but i get this error: Undefined function 'void' for input…
0
votes
0 answers

How to use Supervisor to run Websocket server on AWS Lightsail instance

I'm using this library to add websockets to my codeigniter app. I got everything to work, but I need the websocket server to always run in the background, regardless of the CLI being open or not. To run the server in the CLI, I run this command: php…
0
votes
0 answers

Trying to create a node server that refreshes with file changes , html, js or css

So I have a basic express app and I'm trying to have it refresh with file changes , I've tried reload, supervisor, nodemon and browser-refresh with no luck , any tips. Here's my app.js const path = require('path') const express =…
0
votes
1 answer

MAC OS - Node.js (NPM) - Installing via AppleScript with Admin Rights

When I run the following commands one by one in Terminal it works and installs, sudo npm install supervisor sudo npm install forever It asks for the admin password in Terminal window and installs fine. In AppleScript I run this as, tell…
Codename K
  • 694
  • 2
  • 21
  • 46
0
votes
1 answer

Use nodemon or supervisor to reload only the files without restart all the server - WebStorm

I just took a look to this tutorial: How can I run nodemon from within WebStorm? I'm wondering how reload only the files updated and don't restart the entire server instance. I'm wondering also if it's possible to don't break a debug breakpoint,…
Vadorequest
  • 12,672
  • 17
  • 87
  • 183
0
votes
1 answer

Running node.js w/ supervisor in win8

I'm trying to get my node server running w/ supervisor. I had it working in Windows 7, but now it keeps failing. Here's the output: "C:\Program Files\nodejs\node.exe" C:\Users\Mark\AppData\Roaming\npm\node_modules\supervisor\lib\cli-wrapper.js…
mpen
  • 237,624
  • 230
  • 766
  • 1,119
1
2