1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

document and restructure this code because people continue to misunderstand it

This commit is contained in:
Mike Perham 2017-06-19 07:42:00 -07:00
parent ad98a32cbc
commit 09fcc48b20

View file

@ -101,7 +101,15 @@ module Sidekiq
end
def determine_redis_provider
ENV[ENV['REDIS_PROVIDER'] || 'REDIS_URL']
# If you have this in your environment:
# MY_REDIS_URL=redis://hostname.example.com:1238/4
# then set:
# REDIS_PROVIDER=MY_REDIS_URL
# and Sidekiq will find your custom URL variable with no custom
# initialization code at all.
ENV[
ENV['REDIS_PROVIDER'] || 'REDIS_URL'
]
end
end