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
1 changed files with 1 additions and 0 deletions

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