2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +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:
Jarek Radosz 2022-06-27 19:04:42 +02:00 committed by GitHub
parent 94e59ad9b6
commit aabb98aedc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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