debian-mirror-gitlab/config.ru

16 lines
357 B
Text
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2014-09-02 18:07:02 +05:30
# This file is used by Rack-based servers to start the application.
2022-06-21 17:19:12 +05:30
require ::File.expand_path('config/environment', __dir__)
2014-09-02 18:07:02 +05:30
2018-03-17 18:26:18 +05:30
warmup do |app|
client = Rack::MockRequest.new(app)
client.get('/')
end
2021-10-27 15:23:28 +05:30
map ENV['RAILS_RELATIVE_URL_ROOT'].presence || "/" do
2018-03-27 19:54:05 +05:30
use Gitlab::Middleware::ReleaseEnv
2014-09-02 18:07:02 +05:30
run Gitlab::Application
end