Merge pull request #518 from internetee/add-puma-config

Add puma config
This commit is contained in:
Georg 2017-05-24 15:45:15 +03:00 committed by GitHub
commit 97fb6db29f

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