Skip to content

Instantly share code, notes, and snippets.

@gregorynicholas
Forked from tmeasday/meteor
Created January 19, 2014 02:51
Show Gist options
  • Save gregorynicholas/8499871 to your computer and use it in GitHub Desktop.
Save gregorynicholas/8499871 to your computer and use it in GitHub Desktop.
# Ubuntu upstart file at /etc/init/meteor.conf
author "Tom Coleman <[email protected]>"
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