frankfurter/config/unicorn.rb

12 lines
223 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-06-14 22:16:21 +02:00
2016-10-11 17:54:28 +02:00
worker_process_count = (ENV['WORKER_PROCESSES'] || 4).to_i
2014-03-14 13:30:24 +01:00
preload_app true
2016-10-11 17:54:28 +02:00
worker_processes worker_process_count
2014-03-14 13:30:24 +01:00
timeout 10
before_fork do |_, _|
Sequel::DATABASES.each(&:disconnect)
2014-03-14 13:30:24 +01:00
end