[refs #510] Add 2 resque workers to deploy config

This commit is contained in:
konstantin.grabar 2012-06-08 14:27:39 +04:00
parent 597ac65dee
commit 7a3caf01bd
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ Capistrano::Configuration.instance(:must_exist).load do
end
def start_workers
run "cd #{fetch :current_path} && QUEUE=fork_and_import #{ rails_env } BACKGROUND=yes PIDFILE=#{ fetch(:current_path) }/tmp/pids/resque.pid bundle exec rake resque:work"
run "cd #{fetch :current_path} && COUNT=2 QUEUE=fork_and_import #{ rails_env } BACKGROUND=yes PIDFILE=#{ fetch(:current_path) }/tmp/pids/resque.pid bundle exec rake resque:workers"
end
end
end