mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00:00
DEV: support multiple hosts in dev
This renames the DISCOURSE_ENV_HOST var @eviltrout introduced in 95a9a544 to DISCOURSE_ENV_HOSTS and allows for a comma delimited list of hosts This is useful for testing plugins and customized host names
This commit is contained in:
parent
445d305154
commit
b282c893b2
@ -41,7 +41,9 @@ Discourse::Application.configure do
|
||||
BetterErrors::Middleware.allow_ip! ENV['TRUSTED_IP'] if ENV['TRUSTED_IP']
|
||||
|
||||
config.load_mini_profiler = true
|
||||
config.hosts << ENV['DISCOURSE_DEV_HOST'] if ENV['DISCOURSE_DEV_HOST']
|
||||
if hosts = ENV['DISCOURSE_DEV_HOSTS']
|
||||
config.hosts.concat(hosts.split(","))
|
||||
end
|
||||
|
||||
require 'middleware/turbo_dev'
|
||||
config.middleware.insert 0, Middleware::TurboDev
|
||||
|
Loading…
x
Reference in New Issue
Block a user