Sha256: 13451217c11cb8a1e55b7a1b7b3a0ba726ca64e1e890465ad14e7bd5d81b9a3c

Contents?: true

Size: 657 Bytes

Versions: 19

Compression:

Stored size: 657 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
      sudo "monit restart all -g resque_#{application}"
    end
    
    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" add this to the deploy.rb file
  end 
  
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
eycap-0.6.12 lib/eycap/recipes/resque.rb
eycap-0.6.11 lib/eycap/recipes/resque.rb
eycap-0.6.10 lib/eycap/recipes/resque.rb
eycap-0.6.9 lib/eycap/recipes/resque.rb
eycap-0.6.8 lib/eycap/recipes/resque.rb
eycap-0.6.7 lib/eycap/recipes/resque.rb
eycap-0.6.6 lib/eycap/recipes/resque.rb
eycap-0.6.5 lib/eycap/recipes/resque.rb
eycap-0.6.4 lib/eycap/recipes/resque.rb
eycap-0.6.3 lib/eycap/recipes/resque.rb
eycap-0.6.2 lib/eycap/recipes/resque.rb
eycap-0.6.1 lib/eycap/recipes/resque.rb
eycap-0.6.0 lib/eycap/recipes/resque.rb
eycap-0.5.23 lib/eycap/recipes/resque.rb
eycap-0.5.22 lib/eycap/recipes/resque.rb
eycap-0.5.21 lib/eycap/recipes/resque.rb
eycap-0.5.20 lib/eycap/recipes/resque.rb
eycap-0.5.19 lib/eycap/recipes/resque.rb
eycap-0.5.18 lib/eycap/recipes/resque.rb