Skip to content
代码片段 群组 项目
config.ru 357 字节
更新 更旧
# frozen_string_literal: true

gitlabhq's avatar
gitlabhq 已提交
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('config/environment', __dir__)
warmup do |app|
  client = Rack::MockRequest.new(app)
  client.get('/')
end

map ENV['RAILS_RELATIVE_URL_ROOT'].presence || "/" do
Lin Jen-Shin's avatar
Lin Jen-Shin 已提交
  use Gitlab::Middleware::ReleaseEnv
  run Gitlab::Application
end