Working unicorn with env config.
workers from env, use socket syntax change temp hard code path changes, debugging. typo. dynamic env. more vars.
This commit is contained in:
Родитель
02feaf16c0
Коммит
04fec1189f
|
@ -1,6 +1,9 @@
|
|||
worker_processes 4
|
||||
worker_processes ENV['WORKER_PROCESSES'].to_i || 4
|
||||
timeout 25
|
||||
preload_app true
|
||||
listen "unix:" + ENV['DATA_DIR'] + "/forum.sock", :backlog => 512
|
||||
timeout 120
|
||||
pid ENV['DATA_DIR'] + "/forum_unicorn.pid"
|
||||
|
||||
before_fork do |server, worker|
|
||||
Signal.trap 'TERM' do
|
||||
|
|
Загрузка…
Ссылка в новой задаче