Merge branch 'master' into registry-475

This commit is contained in:
Artur Beljajev 2017-05-26 08:56:09 +03:00
commit 9c8ac57904
5 changed files with 16 additions and 32 deletions

14
config/puma.rb Normal file
View 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