From f78257cbddd711e18cbce93ad740a4aa0acac347 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 6 Mar 2020 15:08:05 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- config/environments/development.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'config') diff --git a/config/environments/development.rb b/config/environments/development.rb index dc804197fef..b6b025112fe 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -50,4 +50,14 @@ Rails.application.configure do # BetterErrors live shell (REPL) on every stack frame BetterErrors::Middleware.allow_ip!("127.0.0.1/0") + + # Reassign some performance related settings when we profile the app + if Gitlab::Utils.to_boolean(ENV['RAILS_PROFILE'].to_s) + warn "Hot-reloading is disabled as you are running with RAILS_PROFILE enabled" + config.cache_classes = true + config.eager_load = true + config.active_record.migration_error = false + config.active_record.verbose_query_logs = false + config.action_view.cache_template_loading = true + end end -- cgit v1.2.3