Commit bc821146 authored by Matthias Kaeppler's avatar Matthias Kaeppler

Rename `app_server?` to `web_server?`

parent dd1a80ce
......@@ -58,7 +58,7 @@ if !Rails.env.test? && Gitlab::Metrics.prometheus_metrics_enabled?
end
end
if Gitlab::Runtime.app_server?
if Gitlab::Runtime.web_server?
Gitlab::Cluster::LifecycleEvents.on_master_start do
Gitlab::Metrics::Exporter::WebExporter.instance.start
end
......
......@@ -382,7 +382,7 @@ module Gitlab
end
def self.long_timeout
if Gitlab::Runtime.app_server?
if Gitlab::Runtime.web_server?
default_timeout
else
6.hours
......
......@@ -45,7 +45,7 @@ module Gitlab
!!defined?(::Rails::Console)
end
def app_server?
def web_server?
puma? || unicorn?
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment