kosiakkatrina
5 months ago
committed by
GitHub
1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@
|
||||
require "configuration/configuration_service" |
||||
require "configuration/env_configuration_service" |
||||
|
||||
# set RedisStore |
||||
if Rails.env.staging? |
||||
configuration_service = Configuration::EnvConfigurationService.new |
||||
redis_url = configuration_service.redis_uris.to_a[0][1] |
||||
|
||||
Rack::MiniProfiler.config.storage_options = { url: redis_url } |
||||
Rack::MiniProfiler.config.storage = Rack::MiniProfiler::RedisStore |
||||
end |
Loading…
Reference in new issue