Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shahzaibalikhan/6968d61acc3b534cb440149c70490da0 to your computer and use it in GitHub Desktop.
Save shahzaibalikhan/6968d61acc3b534cb440149c70490da0 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