Last active
August 29, 2015 14:22
-
-
Save rajbharath/dbd28aa56a5a13145ec8 to your computer and use it in GitHub Desktop.
Redis heroku config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku config:set REDIS_PROVIDER=REDISTOGO_URL | |
Sidekiq will automatically use it. | |
Also create a config/initializers/redis.rb and put the below content | |
if ENV["REDISCLOUD_URL"] | |
$redis = Redis.new(:url => ENV["REDISCLOUD_URL"]) | |
end | |
and start redis in heroku by the below command | |
> heroku redis | |
Thats all redis started and sidekiq will automatically use the REDIS_PROVIDER variable | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment