summaryrefslogtreecommitdiff
path: root/config/initializers/validate_puma.rb
blob: 5abcfbfe6bea47808661989e93c06bc5166724b7 (plain)
1
2
3
4
5
# 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