Skip to content

Instantly share code, notes, and snippets.

@framerate
Last active May 2, 2016 21:15
Show Gist options
  • Save framerate/7555248 to your computer and use it in GitHub Desktop.
Save framerate/7555248 to your computer and use it in GitHub Desktop.
upstart
description "Server Name
author "author"
start on (local-filesystems and net-device-up IFACE=eth0)
stop on shutdown
respawn
exec sudo -u ubuntu sh -c "NODE_ENV=production node /var/sites/stuff/app.js >> /var/log/stuff.log 2>&1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment