Created
December 19, 2012 02:07
-
-
Save tmeasday/4333791 to your computer and use it in GitHub Desktop.
Upstart file for ubuntu meteor apps
This file contains 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
# Ubuntu upstart file at /etc/init/meteor.conf | |
author "Tom Coleman <tom@thesnail.org>" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
respawn | |
respawn limit 10 5 | |
script | |
APP_DIR=/home/ubuntu/bundle | |
LOG_FILE=/var/log/meteor.log | |
export PORT=80 | |
export MONGO_URL=mongodb://localhost:27017/hnwishlist | |
export ROOT_URL=http://ec2-23-23-60-175.compute-1.amazonaws.com/ | |
/usr/bin/node "$APP_DIR/main.js" 2>&1 >> $LOG_FILE | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment