mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 04:22:28 +01:00
11 lines
222 B
Ruby
11 lines
222 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
|