Merge branch '38930-warmup' into 'master'
Resolve "First request after GDK server started is slow" Closes #38930 See merge request gitlab-org/gitlab-ce!16153
This commit is contained in:
commit
723d788fbe
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,11 @@ end
|
|||
|
||||
require ::File.expand_path('../config/environment', __FILE__)
|
||||
|
||||
warmup do |app|
|
||||
client = Rack::MockRequest.new(app)
|
||||
client.get('/')
|
||||
end
|
||||
|
||||
map ENV['RAILS_RELATIVE_URL_ROOT'] || "/" do
|
||||
run Gitlab::Application
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue