frankfurter/config/unicorn.rb
2015-09-02 22:32:25 +01:00

8 lines
147 B
Ruby

preload_app true
worker_processes (ENV['WORKER_PROCESSES'] || 4).to_i
timeout 10
before_fork do |_, _|
Sequel::DATABASES.each(&:disconnect)
end