Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

My rails app's redis cache on Heroku

$
0
0

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.


Viewing all articles
Browse latest Browse all 873

Trending Articles