Configure better_errors to work in Docker environments

This commit is contained in:
Andreas Nedbal 2022-04-14 22:58:56 +02:00 committed by Andreas Nedbal
parent a381483bb4
commit 833c0cb671

View file

@ -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"