I’ve just ‘launched’ a Rails app and it worked (almost) 100% seamlessly!

However, I get an exception and the logs say Redis::CannotConnectError.

I’ve used the configuration via flyctl launch setting redis to true.

What could be wrong?

Turns out REDIS_URL wasn’t set. Would be great if it did that automatically on the first launch?

Run these commands:

flyctl redis list or flyctl redis create if none exist

flyctl redis status <name>
copy private URL

flyctl secrets set REDIS_URL=<paste private url>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.