[refs #510] Add queues to capistrano deploy. Add 4 workers to config

This commit is contained in:
konstantin.grabar 2012-06-09 18:53:00 +04:00
parent f37e0e54a3
commit cdf2316a76
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ require './lib/recipes/nginx'
require './lib/recipes/unicorn'
#require './lib/recipes/bluepill'
set :workers_count, 2
set :workers_count, 4
require './lib/recipes/resque'

View File

@ -24,7 +24,7 @@ Capistrano::Configuration.instance(:must_exist).load do
end
def start_workers
run "cd #{fetch :current_path} && COUNT=#{ workers_count } QUEUE=fork_and_import #{ rails_env } BACKGROUND=yes bundle exec rake resque:workers"
run "cd #{fetch :current_path} && COUNT=#{ workers_count } QUEUE=fork_import_hook,clone_and_build,notifications #{ rails_env } BACKGROUND=yes bundle exec rake resque:workers"
end
end
end