DEV: Add DISABLE_MINI_PROFILER development ENV variable

This commit is contained in:
Penar Musaraj 2020-08-21 09:33:22 -04:00
parent 8b2c4b07a4
commit 1acb2f752b
No known key found for this signature in database
GPG Key ID: E390435D881FF0F7
1 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,10 @@ Discourse::Application.configure do
end
end
config.load_mini_profiler = true
if !ENV["DISABLE_MINI_PROFILER"]
config.load_mini_profiler = true
end
if hosts = ENV['DISCOURSE_DEV_HOSTS']
config.hosts.concat(hosts.split(","))
end