From 3f8ccac0327753f05db9458eb1c7e3584974ff9c Mon Sep 17 00:00:00 2001 From: Ash McKenzie Date: Mon, 3 Jun 2019 12:13:00 +1000 Subject: [PATCH] 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. --- config/environments/development.rb | 3 +++ 1 file changed, 3 insertions(+) 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