Closed wmene closed 2 years ago
Still do not understand why the rack-mini-profiler railtie initializer ran after our app's initializer, but found a work-around. I now set Rack::MiniProfiler.config.enable_advanced_debugging_tools = true
in a Rails.config.to_prepare
block
I have a rails app running in production mode that I would like to analyze with memory profiling. In my
config/intializers/profiler.rb
file, I have:However, whenever I try to view the profiling pages, I get the following:
If I start a rails console on the production instance, the
enable_advanced_debugging_tools
is set to false. It's as if setting it was ignored.I know my initializer is running because
Rack::MiniProfiler.config.storage
is set toRack::MiniProfiler::RedisStore
when I check rails consoleAm I setting this value incorrectly? Should it be done in another spot?