A platform for community discussion. Free, open, simple.
DEV: Allow custom hosts in development mode
Robin Ward95a9a544c9a3
diff --git a/config/environments/development.rb b/config/environments/development.rbindex eb623464003..306bd99f25b 100644--- a/config/environments/development.rb+++ b/config/environments/development.rb@@ -41,6 +41,7 @@ Discourse::Application.configure doBetterErrors::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']require 'middleware/turbo_dev'config.middleware.insert 0, Middleware::TurboDev