ubicloud/puma_config.rb
Jeremy Evans fb6731aa59 Update to Puma 7
Use silence_fork_callback_warning to avoid the warning when
using before_fork without workers.

Puma changed from on_booted to after_booted event in 7, so update
to that.
2025-09-09 02:10:31 +09:00

15 lines
295 B
Ruby

# frozen_string_literal: true
# :nocov:
environment ENV["RACK_ENV"] || "development"
port ENV["PORT"] || "3000"
threads 15, 15
enable_keep_alives false
silence_fork_callback_warning
silence_single_worker_warning
preload_app!
before_fork do
Sequel::DATABASES.each(&:disconnect)
end
# :nocov: