【问题标题】:sidekiq worker is not getting triggered when rediscloud url is used in heroku在heroku中使用rediscloud url时不会触发sidekiq worker
【发布时间】:2016-06-23 19:35:53
【问题描述】:

我是 Ruby on Rails 的新手,我面临一个问题,在本地使用 redis (redis://localhost:6379) 的 sidekiq 工作正常(被触发)但在 heroku 中无法使用 rediscloud。可能是什么问题?

我的 procfile 包含:

web: bundle exec puma -C config/puma.rb
worker: bundle exec sidekiq -q critical -q applications -q default

【问题讨论】:

  • 愚蠢的问题,但你怎么知道它没有被触发?你在看什么日志文件?你知道有问题的端口号吗?

标签: ruby-on-rails ruby heroku redis sidekiq


【解决方案1】:

wiki 说明了如何在 Heroku 上设置 Redis 提供程序:

heroku config:set REDIS_PROVIDER=REDISCLOUD_URL

https://github.com/mperham/sidekiq/wiki/Using-Redis#using-an-env-variable

【讨论】:

  • 这对我不起作用。我收到了:exception_object=>#<SocketError: getaddrin fo: Name or service not known>, :status=>500, :status_message=>"Internal Server Error",我已按照说明进行操作。
猜你喜欢
  • 2017-09-09
  • 1970-01-01
  • 2023-03-10
  • 1970-01-01
  • 2015-12-09
  • 2020-07-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多