I am trying to use Redis on Heroku.
I set like the following on initialiers.
redis_url = ENV["REDISTOGO_URL"] || "redis://127.0.0.1:6379/0/myapp"RedisApp::Application.config.cache_store = :redis_store, redis_urlRedisApp::Application.config.session_store :redis_store, redis_server: redis_url
session works fine. But fragment cache gives an error.
ActionView::Template::Error (Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED)):
I believe that the cache is trying to access wrong location.
What mistake did I make?
Thanks.