debian-mirror-gitlab/config/initializers/validate_puma.rb
2020-03-09 13:42:32 +05:30

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