Created
September 5, 2011 23:58
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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