Sha256: 832e0356dff6736afabce282a9179aae9723a427d2e6ef4a3c41af2e09faf89d
Contents?: true
Size: 664 Bytes
Versions: 2
Compression:
Stored size: 664 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :resque do desc "After deploy:restart we want to restart the workers" task :restart, :roles => [:app], :only => {:resque => true} do run "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:update_code", "resque:symlink" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eycap-0.5.15 | lib/eycap/recipes/resque.rb |
eycap-0.5.14 | lib/eycap/recipes/resque.rb |