Skip to content

Instantly share code, notes, and snippets.

@toretore
Created April 25, 2013 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toretore/5463488 to your computer and use it in GitHub Desktop.
Save toretore/5463488 to your computer and use it in GitHub Desktop.
#Goes in /etc/init/<name>.conf
description "Unicorn w/Rails"
start on runlevel [2345]
stop on runlevel [016]
setuid <uid>
setgid <gid>
env RACK_ENV=development
chdir /rails/app
#respawn
exec /path/to/ruby/bin/ruby /path/to/ruby/bin/unicorn -c /rails/app/config/unicorn.rb /rails/app/config.ru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment