debian-mirror-gitlab/config/initializers/validate_puma.rb

6 lines
172 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
2020-03-13 15:44:24 +05:30
if Gitlab::Runtime.puma? && ::Puma.cli_config.options[:workers].to_i.zero?
2019-12-26 22:10:19 +05:30
raise 'Puma is only supported in Cluster-mode: workers > 0'
end