Sha256: 6422f3e5e68f3ea89f98a2ea91478f4bb139e10050a8742988b7b72cb8b998cb

Contents?: true

Size: 462 Bytes

Versions: 14

Compression:

Stored size: 462 Bytes

Contents

require 'thinking_sphinx/deploy/capistrano'

Capistrano::Configuration.instance(:must_exist).load do

  task :worker_stop, :roles => [:app] do
    # stop delayed job worker
    run "#{in_current} rake RAILS_ENV=production worker:stop"
  end

  on_stop do
    worker_stop
  end

  task :worker_start, :roles => [:app] do
    # start delayed job worker
    run "#{in_current} rake RAILS_ENV=production worker:start"
  end

  on_start do
    worker_start
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
zena-1.0.0.rc2 bricks/worker/zena/deploy.rb
zena-1.0.0.rc1 bricks/worker/zena/deploy.rb
zena-0.16.9 bricks/worker/misc/deploy.rb
zena-1.0.0.beta3 bricks/worker/zena/deploy.rb
zena-0.16.8 bricks/worker/misc/deploy.rb
zena-1.0.0.beta2 bricks/worker/zena/deploy.rb
zena-1.0.0.beta1 bricks/worker/zena/deploy.rb
zena-0.16.7 bricks/worker/misc/deploy.rb
zena-0.16.6 bricks/worker/misc/deploy.rb
zena-0.16.5 bricks/worker/misc/deploy.rb
zena-0.16.4 bricks/worker/misc/deploy.rb
zena-0.16.3 bricks/worker/misc/deploy.rb
zena-0.16.2 bricks/worker/misc/deploy.rb
zena-0.16.1 bricks/worker/misc/deploy.rb