Created
September 2, 2010 16:14
-
-
Save mcmoyer/562494 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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