Merge pull request #1391 from Retrospring/allow-extra-hosts-in-dev
Allow setting extra hosts in development environments
This commit is contained in:
commit
3676ebb7a2
|
@ -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