Skip to content

Instantly share code, notes, and snippets.

@rajbharath
Last active August 29, 2015 14:22
Show Gist options
  • Save rajbharath/dbd28aa56a5a13145ec8 to your computer and use it in GitHub Desktop.
Save rajbharath/dbd28aa56a5a13145ec8 to your computer and use it in GitHub Desktop.
Redis heroku config
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