mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
DEV: Add DISABLE_MINI_PROFILER development ENV variable
This commit is contained in:
parent
8b2c4b07a4
commit
1acb2f752b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user