Sha256: ae7d5ca7a333fb0d3a791073bd0b5edcb8a445bc88dac8fd00aca78758c10088
Contents?: true
Size: 818 Bytes
Versions: 6
Compression:
Stored size: 818 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :bdrb do desc "After update_code you want to reindex" task :reindex, :roles => :app, :only => {:backgroundrb => true} do run "/engineyard/bin/searchd #{application} reindex" end desc "Start Backgroundrb" task :start, :roles => :app, :only => {:backgroundrb => true} do sudo "/usr/bin/monit start all -g backgroundrb_#{application}" end desc "Stop Backgroundrb" task :stop, :roles => :app, :only => {:backgroundrb => true} do sudo "/usr/bin/monit stop all -g backgroundrb_#{application}" end desc "Restart Backgroundrb" task :restart, :roles => :app, :only => {:backgroundrb => true} do sudo "/usr/bin/monit restart all -g backgroundrb_#{application}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems