summaryrefslogtreecommitdiff
path: root/config/initializers/validate_puma.rb
blob: ac5678c4b5ab051fd217c61f4c32bfbebe4ec5c2 (plain)
1
2
3
4
5
# frozen_string_literal: true

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