2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2016-03-17 12:31:36 +00:00
|
|
|
workers Integer(ENV['WEB_CONCURRENCY'] || 0)
|
2016-03-17 10:58:42 +00:00
|
|
|
threads_count_min = Integer(ENV['MIN_THREADS'] || 5)
|
2016-03-17 12:31:36 +00:00
|
|
|
threads_count_max = Integer(ENV['MAX_THREADS'] || 30)
|
2016-03-17 10:58:42 +00:00
|
|
|
threads threads_count_min, threads_count_max
|
|
|
|
|
2018-12-03 11:33:27 +00:00
|
|
|
environment ENV.fetch('RAILS_ENV', 'development')
|
|
|
|
|
2016-03-17 10:58:42 +00:00
|
|
|
preload_app!
|
|
|
|
|
|
|
|
on_worker_boot do
|
|
|
|
ActiveRecord::Base.establish_connection
|
|
|
|
end
|