Skip to content

Instantly share code, notes, and snippets.

@dineshsprabu
Last active June 9, 2022 12:58
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dineshsprabu/e7553cc9cc2f23b5c696 to your computer and use it in GitHub Desktop.
Save dineshsprabu/e7553cc9cc2f23b5c696 to your computer and use it in GitHub Desktop.
Forever for NPM applications starting with 'npm start'
/*
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 */
@DeanKamali
Copy link

Thanks

@CuevasJulian
Copy link

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment