summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-06-03 12:13:00 +1000
committerAsh McKenzie <amckenzie@gitlab.com>2019-06-05 21:48:44 +1000
commit3f8ccac0327753f05db9458eb1c7e3584974ff9c (patch)
treefbbdec07c4e62e014a2dda950b2bcc84f75f2af9 /config
parent31c32db2a97aab809e5b655889fb6b7b8b968060 (diff)
downloadgitlab-ce-3f8ccac0327753f05db9458eb1c7e3584974ff9c.tar.gz
Allow BetterErrors REPL to be enabledashmckenzie/enable-better-errors-repl
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