Created — forked from mdolian/resque.rb

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View resque.rb
1 2 3 4 5 6 7 8 9 10 11 12 13
namespace :resque do
desc "After deploy:restart we want to restart the workers"
task :restart, :roles => [:app], :only => {:resque => true} do
sudo "monit restart all -g resque_#{application}"
end
after "deploy:restart","resque:restart"
desc "After update_code we want to symlink the resque.yml"
task :symlink, :roles => [:app], :only => {:resque => true} do
run "if [ -f #{shared_path}/config/resque.yml ]; then ln -nfs #{shared_path}/config/resque.yml #{latest_release}/config/resque.yml; fi"
end
after "deploy:symlink_configs", "resque:symlink"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.