mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 09:27:19 +02:00
14 lines
222 B
Ruby
14 lines
222 B
Ruby
preload_app!
|
|
|
|
threads 1, 4
|
|
workers 2
|
|
|
|
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
|