Skip to content

Instantly share code, notes, and snippets.

@zmalltalker
Created February 23, 2012 07:53
Show Gist options
  • Save zmalltalker/1891397 to your computer and use it in GitHub Desktop.
Save zmalltalker/1891397 to your computer and use it in GitHub Desktop.
Very simple upstart script for Unicorn
chdir /var/www/rails_apps/the_one
env RAILS_ENV=production
exec /usr/bin/bundle exec unicorn_rails -c config/unicorn.rb
respawn
# This start on stanza works, but it's simplistic
# Will add a stop on stanza once I make up my mind about stop on
start on runlevel [3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment