Sha256: 704cdc239a97540f850c7d9b4a0b9c531f9e7d98e807af00e8f60f4a815e2d28

Contents?: true

Size: 417 Bytes

Versions: 15

Compression:

Stored size: 417 Bytes

Contents

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

15 entries across 15 versions & 1 rubygems

Version Path
zena-1.2.8 bricks/worker/zena/deploy.rb
zena-1.2.7 bricks/worker/zena/deploy.rb
zena-1.2.6 bricks/worker/zena/deploy.rb
zena-1.2.5 bricks/worker/zena/deploy.rb
zena-1.2.4 bricks/worker/zena/deploy.rb
zena-1.2.3 bricks/worker/zena/deploy.rb
zena-1.2.2 bricks/worker/zena/deploy.rb
zena-1.2.1 bricks/worker/zena/deploy.rb
zena-1.2.0 bricks/worker/zena/deploy.rb
zena-1.1.3 bricks/worker/zena/deploy.rb
zena-1.1.2 bricks/worker/zena/deploy.rb
zena-1.1.1 bricks/worker/zena/deploy.rb
zena-1.1.0 bricks/worker/zena/deploy.rb
zena-1.0.0 bricks/worker/zena/deploy.rb
zena-1.0.0.rc3 bricks/worker/zena/deploy.rb