mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Merge pull request #518 from internetee/add-puma-config
Add puma config
This commit is contained in:
commit
97fb6db29f
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