debian-mirror-gitlab/config/initializers/validate_puma.rb
2021-04-17 20:07:23 +05:30

8 lines
353 B
Ruby

# frozen_string_literal: true
if Gitlab::Runtime.puma? && !Gitlab::Runtime.puma_in_clustered_mode?
raise 'Puma is only supported in Clustered mode (workers > 0)' if Gitlab.com?
warn 'WARNING: Puma is running in Single mode (workers = 0). Some features may not work. Please refer to https://gitlab.com/groups/gitlab-org/-/epics/5303 for info.'
end