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

6 lines
171 B
Ruby
Raw Normal View History

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