puma.rb 404 B

1234567891011121314
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. workers Integer(ENV['WEB_CONCURRENCY'] || 0)
  3. threads_count_min = Integer(ENV['MIN_THREADS'] || 5)
  4. threads_count_max = Integer(ENV['MAX_THREADS'] || 30)
  5. threads threads_count_min, threads_count_max
  6. environment ENV.fetch('RAILS_ENV', 'development')
  7. preload_app!
  8. on_worker_boot do
  9. ActiveRecord::Base.establish_connection
  10. end