trabajo-afectivo/config/puma.rb

11 lines
276 B
Ruby
Raw Normal View History

2016-03-17 10:58:42 +00:00
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count_min = Integer(ENV['MIN_THREADS'] || 5)
threads_count_max = Integer(ENV['MAX_THREADS'] || 20)
threads threads_count_min, threads_count_max
preload_app!
on_worker_boot do
ActiveRecord::Base.establish_connection
end