Created
April 29, 2011 21:48
-
-
Save ksarna/949099 to your computer and use it in GitHub Desktop.
Capistrano task for restarting standalone passenger process
This file contains hidden or 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
# this is to adjust the capistrano deploy if you are using standalone passenger process, | |
namespace :deploy do | |
task :restart, :roles => :app, :except => {:no_release => true} do | |
run "start-stop-daemon –stop –name nginex" | |
run "cd #{deploy_to}/current && passenger start -a 127.0.0.1 -p 3000 -d -e #{environment}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment