Last active
June 9, 2022 12:58
-
-
Save dineshsprabu/e7553cc9cc2f23b5c696 to your computer and use it in GitHub Desktop.
Forever for NPM applications starting with 'npm start'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
If your package.json file contains "start": "node ./bin/www" | |
Use the following command to bring up your app with forever | |
*/ | |
forever start --minUptime 1000 --spinSleepTime 1000 ./bin/www | |
/* Check list of forever process using the command */ | |
forever list | |
/* Stop the forever process using the command */ | |
forever stop <pid> | |
/* we can find the pid from forever list command */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks