mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Add puma config
This commit is contained in:
parent
b478712f7c
commit
924e6c037a
1 changed files with 14 additions and 0 deletions
14
config/puma.rb
Normal file
14
config/puma.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue