Skip to content

A platform for community discussion. Free, open, simple.

DEV: support multiple hosts in dev

Sam Saffronb282c893b20e
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 306bd99f25b..6c080046d7a 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -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