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

NameError Redis on Rails 7 app on Elastic Beanstalk

$
0
0

I am trying to connect Elastic Cache Redis to my Rails 7 app and it gives me this error as if it does not know 'redis'.

2023/08/14 13:25:30.632645 [INFO] Running command /bin/su webapp -c bundle exec rake assets:precompile2023/08/14 13:25:31.595513 [INFO] rake aborted!NameError: undefined local variable or method `redis' for main:ObjectDid you mean?  redo

I have redis gem and Elastic Cache configured like this in production.rb:

config.cache_store = :redis_cache_store, { URL: ENV["REDIS_PRIMARY_ENDPOINT"] }

Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>