Skip to content

Instantly share code, notes, and snippets.

@gordonbisnor
Created September 2, 2009 19:22
Show Gist options
  • Save gordonbisnor/179918 to your computer and use it in GitHub Desktop.
Save gordonbisnor/179918 to your computer and use it in GitHub Desktop.
Getting cap deploy restart working on Webfaction
desc "Redefine deploy:restart"
task :restart, :roles => :app do
invoke_command "/home/#{user}/ruby1.8/lib/ruby/gems/1.8/bin/mongrel_rails stop -c #{deploy_to}/current -P /home/#{webfaction_username}/webapps/#{application}/log/mongrel.pid", :via => run_method
invoke_command "/home/#{user}/ruby1.8/lib/ruby/gems/1.8/bin/mongrel_rails start -c #{deploy_to}/current -d -e production -P /home/#{webfaction_username}/webapps/#{application}/log/mongrel.pid -p #{webfaction_port}", :via => run_method
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment