Merge pull request #1391 from Retrospring/allow-extra-hosts-in-dev

Allow setting extra hosts in development environments
This commit is contained in:
Karina Kwiatek 2023-10-19 20:35:11 +02:00 committed by GitHub
commit 3676ebb7a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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