Created
November 21, 2013 13:20
-
-
Save andineck/7581456 to your computer and use it in GitHub Desktop.
Start node.js app with forever
This file contains 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
npm install forever -g | |
cd /path/to/your/node/app/ | |
forever start --spinSleepTime 10000 app.js | |
# Where --spinSleepTime 10000 refers to the minimum uptime (in milliseconds) between launches of a crashing script. This command will work for almost all cases. | |
# Now point your browser to http://[your-vps-ip]:[port] and see your app running. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment