lib/caploy/recipes/unicorn.rb in caploy-0.1.2 vs lib/caploy/recipes/unicorn.rb in caploy-0.1.3
- old
+ new
@@ -4,10 +4,11 @@
_cset :unicorn_pid, "#{deploy_to}/current/tmp/pids/unicorn.pid"
_cset :unicorn_std_log, "log/unicorn.stderr.log"
_cset :unicorn_err_log, "log/unicorn.stderr.log"
_cset :unicorn_worker_processes, 2
_cset :unicorn_listen_backlog, 2048
+ _cset :sidekiq_redis_count, 1
require "capistrano-unicorn"
namespace :unicorn do
desc "Setup unicorn"
@@ -21,10 +22,11 @@
'unicorn_pid' => unicorn_pid,
'unicorn_std_log' => unicorn_std_log,
'unicorn_err_log' => unicorn_err_log,
'stage' => stage,
'unicorn_listen_backlog' => unicorn_listen_backlog,
- 'unicorn_worker_processes' => unicorn_worker_processes
+ 'unicorn_worker_processes' => unicorn_worker_processes,
+ 'sidekiq_redis_count' => sidekiq_redis_count
}
put(render_erb_template(template_path, vars), config_path)
end
end