Sha256: 5b64968f89c48881980ed99c5b1b9dd9a49a2dc8b6590b935c428570aaac034c

Contents?: true

Size: 656 Bytes

Versions: 1

Compression:

Stored size: 656 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
    
    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

1 entries across 1 versions & 1 rubygems

Version Path
eycap-0.5.17 lib/eycap/recipes/resque.rb