DEV: Deprecate `DISCOURSE_DEV_HOSTS` (#17245)
`RAILS_DEVELOPMENT_HOSTS` is a Rails standard that does exactly the same thing.
This commit is contained in:
parent
94e59ad9b6
commit
aabb98aedc
|
@ -67,6 +67,7 @@ Discourse::Application.configure do
|
|||
end
|
||||
|
||||
if hosts = ENV['DISCOURSE_DEV_HOSTS']
|
||||
Discourse.deprecate("DISCOURSE_DEV_HOSTS is deprecated. Use RAILS_DEVELOPMENT_HOSTS instead.")
|
||||
config.hosts.concat(hosts.split(","))
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue