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:
parent
ad98a32cbc
commit
09fcc48b20
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue