summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-06 15:08:05 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-06 15:08:05 +0000
commitf78257cbddd711e18cbce93ad740a4aa0acac347 (patch)
tree7f018abe3ce1c0010879cc480f348a35e616fabb /config
parentf500600a43b531e2e7a5858b74bd35312b02c349 (diff)
downloadgitlab-ce-f78257cbddd711e18cbce93ad740a4aa0acac347.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config')
-rw-r--r--config/environments/development.rb10
1 files changed, 10 insertions, 0 deletions
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