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? ...@@ -58,7 +58,7 @@ if !Rails.env.test? && Gitlab::Metrics.prometheus_metrics_enabled?
end end
end end
if Gitlab::Runtime.app_server? if Gitlab::Runtime.web_server?
Gitlab::Cluster::LifecycleEvents.on_master_start do Gitlab::Cluster::LifecycleEvents.on_master_start do
Gitlab::Metrics::Exporter::WebExporter.instance.start Gitlab::Metrics::Exporter::WebExporter.instance.start
end end
......
...@@ -382,7 +382,7 @@ module Gitlab ...@@ -382,7 +382,7 @@ module Gitlab
end end
def self.long_timeout def self.long_timeout
if Gitlab::Runtime.app_server? if Gitlab::Runtime.web_server?
default_timeout default_timeout
else else
6.hours 6.hours
......
...@@ -45,7 +45,7 @@ module Gitlab ...@@ -45,7 +45,7 @@ module Gitlab
!!defined?(::Rails::Console) !!defined?(::Rails::Console)
end end
def app_server? def web_server?
puma? || unicorn? puma? || unicorn?
end 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