From 833c0cb6711d0b46e54598f2e85deb6bd973502d Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Thu, 14 Apr 2022 22:58:56 +0200 Subject: [PATCH] Configure better_errors to work in Docker environments --- config/environments/development.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 917240f1..317e27e3 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -72,3 +72,7 @@ Rails.application.configure do # routes, locales, etc. This feature depends on the listen gem. # config.file_watcher = ActiveSupport::EventedFileUpdateChecker end + +# For better_errors to work inside Docker we need +# to allow 0.0.0.0 as an IP in development context +BetterErrors::Middleware.allow_ip! "0.0.0.0/0"