lib/caploy/recipes/unicorn.rb in caploy-0.1.10 vs lib/caploy/recipes/unicorn.rb in caploy-0.1.11
- old
+ new
@@ -25,10 +25,11 @@
_cset(:unicorn_pid, "#{fetch(:current_path)}/tmp/pids/unicorn.pid")
_cset(:unicorn_env, (fetch(:app_env)))
_cset :unicorn_std_log, "log/unicorn.stderr.log"
_cset :unicorn_err_log, "log/unicorn.stderr.log"
_cset :unicorn_worker_processes, 2
+ _cset :unicorn_timeout, 30
_cset :unicorn_listen_backlog, 2048
_cset :sidekiq_redis_count, 1
_cset :unicorn_hard_restart, false
namespace :unicorn do
@@ -116,9 +117,10 @@
'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_timeout' => unicorn_timeout,
'sidekiq_redis_count' => sidekiq_redis_count,
'sidekiq_redis_url' => sidekiq_redis_url
}
put(render_erb_template(template_path, vars), config_path)
end