update puma
This commit is contained in:
parent
3fa8b966b7
commit
ccf2619632
|
@ -7,19 +7,9 @@ if ENV['RAILS_ENV'] == 'production'
|
|||
daemonize true
|
||||
workers 1
|
||||
threads 4, 8
|
||||
preload_app!
|
||||
prune_bundler
|
||||
|
||||
stdout_redirect "#{app_root}/log/puma_access.log", "#{app_root}/log/puma_error.log", true
|
||||
|
||||
on_worker_boot do
|
||||
ActiveSupport.on_load(:active_record) do
|
||||
ActiveRecord::Base.establish_connection
|
||||
end
|
||||
end
|
||||
|
||||
before_fork do
|
||||
ActiveRecord::Base.connection_pool.disconnect!
|
||||
end
|
||||
else
|
||||
plugin :tmp_restart
|
||||
end
|
||||
|
|
|
@ -7,19 +7,9 @@ if ENV['RAILS_ENV'] == 'production'
|
|||
daemonize true
|
||||
workers 1
|
||||
threads 4, 8
|
||||
preload_app!
|
||||
prune_bundler
|
||||
|
||||
stdout_redirect "#{app_root}/log/puma_access.log", "#{app_root}/log/puma_error.log", true
|
||||
|
||||
on_worker_boot do
|
||||
ActiveSupport.on_load(:active_record) do
|
||||
ActiveRecord::Base.establish_connection
|
||||
end
|
||||
end
|
||||
|
||||
before_fork do
|
||||
ActiveRecord::Base.connection_pool.disconnect!
|
||||
end
|
||||
else
|
||||
plugin :tmp_restart
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue