diff --git a/config/unicorn.rb b/config/unicorn.rb index a25de5c..7150f06 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -1,15 +1,15 @@ -worker_processes 3 +worker_processes 4 timeout 30 preload_app true -before_fork do +before_fork do |_server, _worker| Signal.trap 'TERM' do Process.kill 'QUIT', Process.pid end ActiveRecord::Base.connection.disconnect! end -after_fork do +after_fork do |_server, _worker| Signal.trap 'TERM' do end ActiveRecord::Base.establish_connection