A platform for community discussion. Free, open, simple.
DEV: Disable better_errors when developing with more than one worker (#8201)
David Taylor1b8be069e5c4
diff --git a/config/environments/development.rb b/config/environments/development.rbindex 6c080046d7a..473347772f7 100644--- a/config/environments/development.rb+++ b/config/environments/development.rb@@ -40,6 +40,11 @@ Discourse::Application.configure doBetterErrors::Middleware.allow_ip! ENV['TRUSTED_IP'] if ENV['TRUSTED_IP']+ if defined?(Unicorn) && ENV["UNICORN_WORKERS"].to_i != 1+ # BetterErrors doesn't work with multiple unicorn workers. Disable it to avoid confusion+ Rails.configuration.middleware.delete BetterErrors::Middleware+ end+config.load_mini_profiler = trueif hosts = ENV['DISCOURSE_DEV_HOSTS']config.hosts.concat(hosts.split(","))