V
V
Vitaly2015-10-14 12:07:58
JavaScript
Vitaly, 2015-10-14 12:07:58

How to set up node supervisor module in express project?

Good time everyone.
Installed this module via npm i -g supervisor.
I run the www file of the express project, in which the http module is called using supervisor , and everything should work as it were:
Running node-supervisor with
program 'www'
--watch '.'
--extensions 'node,js'
--exec 'node'
Starting child process with 'node www'
Watching directory '/Users/scorpio/Documents/git/statistic/bin' for changes.
Press rs for restarting the process.
But with any change in the www file, nothing happens, to apply the changes, you need to restart the server again (.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Markus Kelvin, 2015-11-01
@mmxdesign

if, for example, you work in Webstorm, you need to rewrite the Path to Node path in the Run / Debug Configurations -> to the following /usr/local/bin/supervisor
, you probably just have /usr/local/bin/node by default, so it does not follow in real time for changes in files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question