frankfurter/config/unicorn.rb
Hakan Ensari c07c84ad1f Revert "Replace Unicorn with Puma"
This reverts commit 11c2d760bc.
2018-09-12 00:54:39 +01:00

12 lines
223 B
Ruby

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