Created
September 2, 2009 19:22
-
-
Save gordonbisnor/179918 to your computer and use it in GitHub Desktop.
Getting cap deploy restart working on Webfaction
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
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