Allow setting extra hosts in development environments
This commit is contained in:
parent
bdedd92817
commit
4f1b6ca03e
|
@ -75,6 +75,7 @@ Rails.application.configure do
|
||||||
# Use an evented file watcher to asynchronously detect changes in source code,
|
# Use an evented file watcher to asynchronously detect changes in source code,
|
||||||
# routes, locales, etc. This feature depends on the listen gem.
|
# routes, locales, etc. This feature depends on the listen gem.
|
||||||
# config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
# config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
||||||
|
config.hosts += ENV["EXTRA_HOSTS"].split(':') if ENV["EXTRA_HOSTS"].present?
|
||||||
end
|
end
|
||||||
|
|
||||||
# For better_errors to work inside Docker we need
|
# For better_errors to work inside Docker we need
|
||||||
|
|
Loading…
Reference in New Issue