Skip to content

Instantly share code, notes, and snippets.

@tmeasday
Created December 19, 2012 02:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tmeasday/4333791 to your computer and use it in GitHub Desktop.
Save tmeasday/4333791 to your computer and use it in GitHub Desktop.
Upstart file for ubuntu meteor apps
# 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