mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 19:02:46 +08:00
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
|
end
|
||||||
|
|
||||||
if hosts = ENV['DISCOURSE_DEV_HOSTS']
|
if hosts = ENV['DISCOURSE_DEV_HOSTS']
|
||||||
|
Discourse.deprecate("DISCOURSE_DEV_HOSTS is deprecated. Use RAILS_DEVELOPMENT_HOSTS instead.")
|
||||||
config.hosts.concat(hosts.split(","))
|
config.hosts.concat(hosts.split(","))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user