debian-mirror-gitlab/config/initializers/validate_puma.rb
2019-12-26 22:10:19 +05:30

5 lines
167 B
Ruby

# frozen_string_literal: true
if defined?(::Puma) && ::Puma.cli_config.options[:workers].to_i.zero?
raise 'Puma is only supported in Cluster-mode: workers > 0'
end