Heroku上的Redistogo和Sidekiq:无法连接 [英] Redistogo and Sidekiq on Heroku: Can't connect
本文介绍了Heroku上的Redistogo和Sidekiq:无法连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在更新我的宝石并将所有内容投入生产之后,我在Heroku上启动sidekiq时遇到了很多问题。问题在于Sidekiq试图在本地连接和端口上连接到Redis,而不是使用REDISTOGO变量。花了几个小时后,我设法解决它:解决方案
:
heroku config:set REDIS_PROVIDER = REDISTOGO_URL
Sidekiq会自动使用它。
I had huge issues with starting sidekiq on Heroku after updating my gems and putting everything into production. The problem was that Sidekiq tried to connect to Redis on a local connection and port, instead of using the REDISTOGO variable. After spending a few hours, I managed to fix it: Answer below.
解决方案
Remove everything from the if and below and run this:
heroku config:set REDIS_PROVIDER=REDISTOGO_URL
Sidekiq will automatically use it.
这篇关于Heroku上的Redistogo和Sidekiq:无法连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文