summaryrefslogtreecommitdiff
path: root/config.ru
diff options
context:
space:
mode:
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru16
1 files changed, 8 insertions, 8 deletions
diff --git a/config.ru b/config.ru
index 5cd79870d54..68b8c5b63f9 100644
--- a/config.ru
+++ b/config.ru
@@ -1,14 +1,14 @@
# This file is used by Rack-based servers to start the application.
if defined?(Unicorn)
- require 'unicorn'
+ require "unicorn"
- if ENV['RAILS_ENV'] == 'production' || ENV['RAILS_ENV'] == 'staging'
+ if ENV["RAILS_ENV"] == "production" || ENV["RAILS_ENV"] == "staging"
# Unicorn self-process killer
- require 'unicorn/worker_killer'
+ require "unicorn/worker_killer"
- min = (ENV['GITLAB_UNICORN_MEMORY_MIN'] || 400 * 1 << 20).to_i
- max = (ENV['GITLAB_UNICORN_MEMORY_MAX'] || 650 * 1 << 20).to_i
+ min = (ENV["GITLAB_UNICORN_MEMORY_MIN"] || 400 * 1 << 20).to_i
+ max = (ENV["GITLAB_UNICORN_MEMORY_MAX"] || 650 * 1 << 20).to_i
# Max memory size (RSS) per worker
use Unicorn::WorkerKiller::Oom, min, max
@@ -19,14 +19,14 @@ if defined?(Unicorn)
Unicorn::StreamInput.send(:public, :eof?) # rubocop:disable GitlabSecurity/PublicSend
end
-require ::File.expand_path('../config/environment', __FILE__)
+require ::File.expand_path("../config/environment", __FILE__)
warmup do |app|
client = Rack::MockRequest.new(app)
- client.get('/')
+ client.get("/")
end
-map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do
+map ENV["RAILS_RELATIVE_URL_ROOT"] || "/" do
use Gitlab::Middleware::ReleaseEnv
run Gitlab::Application
end