gitlab-org--gitlab-foss/config/initializers/validate_puma.rb

5 lines
172 B
Ruby

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