frankfurter/config/unicorn.rb
2015-07-30 23:51:06 +02:00

8 lines
140 B
Ruby

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