Skip to content

Instantly share code, notes, and snippets.

@mcmoyer
Created September 2, 2010 16:14
Show Gist options
  • Save mcmoyer/562494 to your computer and use it in GitHub Desktop.
Save mcmoyer/562494 to your computer and use it in GitHub Desktop.
# start this task as deployer
description "Starts the rails app server(unicorn) as the user 'deployer'"
start on filesystem
chdir /srv/www/{path_to_my_app}
exec sudo -u deployer -i 'rvm ree; unicorn_rails -c /srv/www/{path_to_my_app}/config/unicorn.rb -E production'
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment