Forever-restart when files change?

March 7, 2022 . 1 MIN READ

forever stopall

git pull

forever start server.js

 

https://www.npmjs.com/package/node-dev

 

Logging and output file locations

By default forever places all of the files it needs into /$HOME/.forever. If you would like to change that location just set the FOREVER_ROOT environment variable when you are running forever:

FOREVER_ROOT=/etc/forever forever start index.js

Make sure that the user running the process has the appropriate privileges to read & write to this directory.

 

https://www.airpair.com/node.js/posts/top-10-mistakes-node-developers-make

https://docs.jelastic.com/nodejs-process-managers/

https://manage.runcloud.io/servers/151816/supervisors/create

Reference: https://github.com/foreversd/forever/issues/41

https://github.com/foreversd/forever

Leave a Reply

Your email address will not be published. Required fields are marked *