Remove legacy code from Puma config.
This commit is contained in:
@@ -23,13 +23,3 @@ on_restart do
|
|||||||
puts "Refreshing Gemfile"
|
puts "Refreshing Gemfile"
|
||||||
ENV["BUNDLE_GEMFILE"] = ""
|
ENV["BUNDLE_GEMFILE"] = ""
|
||||||
end
|
end
|
||||||
|
|
||||||
before_fork do
|
|
||||||
ActiveRecord::Base.connection_pool.disconnect!
|
|
||||||
end
|
|
||||||
|
|
||||||
on_worker_boot do
|
|
||||||
ActiveSupport.on_load(:active_record) do
|
|
||||||
ActiveRecord::Base.establish_connection
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|||||||
Reference in New Issue
Block a user