Connect to ENV["REDIS_URL"] by default#14
Conversation
This makes it so that if you have a `REDIS_URL` environment variable set, redic will connect to that, and if that's not set it will connect to the default `redis://127.0.0.1:6379` address.
|
That used to be the default, but we removed it in a668e4b because we wanted to make the connection explicit when the client is instantiated, with |
|
Hrm. I thought that was the default! I set up Redic for the first time in a couple years and it broke a deploy because I assumed it would do this. Locally and in CI everything worked because I wonder if the goal is to be explicit whether Redic should be having any default at all. Let it fail loudly with an WDYT? Feel free to close the issue whatever you decide. |
|
@foca I overwrite Redic initialize method & add Im try to make it like Redis initialize : ) , but it only support for old version of redic ... |
That's a big gotcha. In the docs it's stated that
I think the convenience of the default is the same as the convenience of running |
This makes it so that if you have a
REDIS_URLenvironment variable set, redic will connect to that, and if that's not set it will connect to the defaultredis://127.0.0.1:6379address.cc @cyx @soveran