[refs #510] Add queues to capistrano deploy. Add 4 workers to config
This commit is contained in:
parent
f37e0e54a3
commit
cdf2316a76
|
@ -37,7 +37,7 @@ require './lib/recipes/nginx'
|
||||||
require './lib/recipes/unicorn'
|
require './lib/recipes/unicorn'
|
||||||
#require './lib/recipes/bluepill'
|
#require './lib/recipes/bluepill'
|
||||||
|
|
||||||
set :workers_count, 2
|
set :workers_count, 4
|
||||||
|
|
||||||
require './lib/recipes/resque'
|
require './lib/recipes/resque'
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_workers
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue