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

Using Redis with Rails on Elastic Beanstalk

$
0
0

I am trying to launch a rails API on AWS. I have created an Elastic Beanstalk app, created a PostgreSQL RDS, and setup CodePipeline, but when I try to deploy I get an error that says "CannotConnectError: Error connecting to Redis". My app uses Redis to cache user login certificates, and when I run it locally I just type "redis-server" in the terminal before "rails s" and it works like a charm. I have tried creating an ElastiCache instance, but I can't figure out how to connect it to my app. I'm also unsure of whether using ElastiCache for this might be overkill, and if it might instead be better to somehow configure the app to start running Redis without it when it's deployed. Another possible solution I can think of is if there a way for me to run terminal commands on my Elastic Beanstalk app and just deploy Redis manually?

I am having a lot of trouble finding a clear explanation of what I am supposed to do to setup Redis to work with Elastic Beanstalk. Can anyone help explain this, or point me to a good resource?


Viewing all articles
Browse latest Browse all 873

Trending Articles



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