Files
ubicloud/puma_config.rb
Jeremy Evans 81540dda65 Increase from 5 to 15 Puma threads
This does it for all environments.  We could use fewer threads in
development, but it's probably better to have the configurations
match.
2025-05-14 03:32:13 +09:00

17 lines
288 B
Ruby

# frozen_string_literal: true
# :nocov:
environment ENV["RACK_ENV"] || "development"
port ENV["PORT"] || "3000"
threads 15, 15
if @config.options[:workers] > 0
silence_single_worker_warning
preload_app!
before_fork do
Sequel::DATABASES.each(&:disconnect)
end
end
# :nocov: