When I used supervisor bin/www command to monitor express project, supervisor did not respond after js files in models and route changed, and the supervisor website would only be updated after restarting.
However, changing css and html files can be updated in real time. How to deal with this problem?
In addition, every time the update is frequent, the supervisor crashes the crashing child. How to deal with it?
My version of node is 4.3.1, windows7 64bit.
Let’s use nodemon. I have already transferred from supervisor to nodemon. it is very convenient to set the directory and type of monitoring files in nodemon. moreover, it can automatically stop monitoring errors and will not always report errors like supervisor!