update puma

This commit is contained in:
yafeilee 2019-04-23 11:00:55 +08:00
parent 3fa8b966b7
commit ccf2619632
2 changed files with 2 additions and 22 deletions

View File

@ -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

View File

@ -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