debian-mirror-gitlab/config/initializers/validate_puma.rb
2020-10-24 23:57:45 +05:30

5 lines
171 B
Ruby

# 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