Skip to content

Instantly share code, notes, and snippets.

@aronbudinszky
Created August 3, 2013 09:19
Show Gist options
  • Save aronbudinszky/6145827 to your computer and use it in GitHub Desktop.
Save aronbudinszky/6145827 to your computer and use it in GitHub Desktop.
Start up a node script forever.
# 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