Skip to content

Instantly share code, notes, and snippets.

@wookiehangover
Created November 23, 2012 07:33
Show Gist options
  • Save wookiehangover/4134389 to your computer and use it in GitHub Desktop.
Save wookiehangover/4134389 to your computer and use it in GitHub Desktop.
#!upstart
description "node server"
start on (local-filesystems and net-device-up IFACE=eth0)
stop on shutdown
script
export HOME="/home/sam"
exec sudo -u sam -i NODE_ENV=production /home/sam/local/node/bin/node /home/sam/dev/repos/wookiehangover.com/forever.js >> /var/log/node-server.log 2>&1
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment