Skip to content

Instantly share code, notes, and snippets.

@bithavoc
Created September 5, 2011 23:58
Show Gist options
  • Save bithavoc/1196206 to your computer and use it in GitHub Desktop.
Save bithavoc/1196206 to your computer and use it in GitHub Desktop.
Upstart Configuration File to run a Node.JS App on a Production Service
#!upstart
description "Website at 0.0.0.0:80"
author "Johan<[email protected]>"
start on runlevel 3
stop on shutdown
script
cd /home/ec2-user/website/ #path to the folder with app.js file
export NODE_ENV=production #which environment?
exec /usr/local/bin/node app.js >> /var/log/website.log
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment