Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-06-03 05:13:00 +0300
committerAsh McKenzie <amckenzie@gitlab.com>2019-06-05 14:48:44 +0300
commit3f8ccac0327753f05db9458eb1c7e3584974ff9c (patch)
treefbbdec07c4e62e014a2dda950b2bcc84f75f2af9 /config
parent31c32db2a97aab809e5b655889fb6b7b8b968060 (diff)
Allow BetterErrors REPL to be enabled
This allows the BetterErrors REPL to be available when your GitLab instance is listening on something _other_ than localhost.
Diffstat (limited to 'config')
-rw-r--r--config/environments/development.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 494ddd72556..ac9b02b08d5 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -47,4 +47,7 @@ Rails.application.configure do
config.assets.quiet = true
config.allow_concurrency = defined?(::Puma)
+
+ # BetterErrors live shell (REPL) on every stack frame
+ BetterErrors::Middleware.allow_ip!("127.0.0.1/0")
end