Allow setting extra hosts in development environments

This commit is contained in:
Karina Kwiatek 2023-10-17 21:59:08 +02:00
parent bdedd92817
commit 4f1b6ca03e
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ Rails.application.configure do
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
# config.file_watcher = ActiveSupport::EventedFileUpdateChecker
config.hosts += ENV["EXTRA_HOSTS"].split(':') if ENV["EXTRA_HOSTS"].present?
end
# For better_errors to work inside Docker we need