Skip to content

Instantly share code, notes, and snippets.

@ksarna
Created April 29, 2011 21:48
Show Gist options
  • Save ksarna/949099 to your computer and use it in GitHub Desktop.
Save ksarna/949099 to your computer and use it in GitHub Desktop.
Capistrano task for restarting standalone passenger process
# 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