unicorn.rb: sync with upstream

This commit is contained in:
Sameer Naik 2017-01-28 20:59:54 +05:30 committed by GitHub
parent dca8b41a10
commit 4902d4dab3

View File

@ -82,7 +82,7 @@ GC.respond_to?(:copy_on_write_friendly=) and
check_client_connection false
before_fork do |server, worker|
# the following is highly recomended for Rails + "preload_app true"
# the following is highly recommended for Rails + "preload_app true"
# as there's no need for the master process to hold a connection
defined?(ActiveRecord::Base) and
ActiveRecord::Base.connection.disconnect!