[491] Bug fix - Sidekiq Redis Auth issue (#527)
* When the the .env file has line with REDIS_PASSWORD set as empty, the value for this in the initializers comes as an empty string "". * Fixed this in a way that, if it's empty string, then it's taken as `nil` value so that password is skipped
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
development:
|
||||
adapter: redis
|
||||
url: <%= ENV.fetch('REDIS_URL', 'redis://127.0.0.1:6379') %>
|
||||
password: <%= ENV.fetch('REDIS_PASSWORD', nil) %>
|
||||
password: <%= ENV.fetch('REDIS_PASSWORD', nil).presence %>
|
||||
|
||||
test:
|
||||
adapter: test
|
||||
@@ -9,9 +9,9 @@ test:
|
||||
staging:
|
||||
adapter: redis
|
||||
url: <%= ENV.fetch('REDIS_URL', 'redis://127.0.0.1:6379') %>
|
||||
password: <%= ENV.fetch('REDIS_PASSWORD', nil) %>
|
||||
password: <%= ENV.fetch('REDIS_PASSWORD', nil).presence %>
|
||||
|
||||
production:
|
||||
adapter: redis
|
||||
url: <%= ENV.fetch('REDIS_URL', 'redis://127.0.0.1:6379') %>
|
||||
password: <%= ENV.fetch('REDIS_PASSWORD', nil) %>
|
||||
password: <%= ENV.fetch('REDIS_PASSWORD', nil).presence %>
|
||||
|
||||
Reference in New Issue
Block a user