diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-24 19:59:11 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-24 19:59:11 +0100 |
commit | 8e34bed7cce7b97388e55fabacee7d424b5846ea (patch) | |
tree | 9aa94e7d781576963267ecb3c351ba990c6e4424 /config/initializers | |
parent | b6ee2fb1c67807238943195ab88372f7121b170a (diff) |
Mini Profiler not working well, remove it
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/mini_profiler.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/config/initializers/mini_profiler.rb b/config/initializers/mini_profiler.rb deleted file mode 100644 index 265783618..000000000 --- a/config/initializers/mini_profiler.rb +++ /dev/null @@ -1,17 +0,0 @@ -require 'rack-mini-profiler' - -Rack::MiniProfilerRails.initialize!(Rails.application) - -Rails.application.middleware.swap(Rack::Deflater, Rack::MiniProfiler) -Rails.application.middleware.swap(Rack::MiniProfiler, Rack::Deflater) - -Rack::MiniProfiler.config.storage = Rack::MiniProfiler::MemoryStore - -if Rails.env.production? - Rack::MiniProfiler.config.storage_options = { - host: ENV.fetch('REDIS_HOST') { 'localhost' }, - port: ENV.fetch('REDIS_PORT') { 6379 }, - } - - Rack::MiniProfiler.config.storage = Rack::MiniProfiler::RedisStore -end |