Created
August 3, 2013 09:19
-
-
Save aronbudinszky/6145827 to your computer and use it in GitHub Desktop.
Start up a node script 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
# Start up the script with forever | |
forever start /path/to/script.js -l /var/log/activity-log.log -o /var/log/activity-log.log -e /var/log/error-log.log -a --watch | |
# Using --watch will reload the server if the contents of the js file changes thereby allowing on-the-fly deployments | |
# -l is for logging forever output, -o is for program output, -e is for program error logs | |
# -a will append the logs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment