Rails: Starting Sidekiq on Heroku

后端 未结 7 1408
心在旅途
心在旅途 2020-12-12 19:00

I\'m having a problem getting Sidekiq up and running on my Heroku deployed Rails app. I have my app working fine in development (and on Heroku without Sidekiq).

I cr

相关标签:
7条回答
  • 2020-12-12 20:05

    What I found out is that you have to scale process manually like so:

    heroku ps:scale worker+1
    

    Makes no sense since my Procfile said:

    web: bundle exec....
    worker: bundle exec sidekiq
    

    ...and one would've expectd Heroku to start the worker automatically. In the end I didn't have to scale the web process...

    Also, you might have problems with this line: worker: bundle exec sidekiq

    Add flags for concurency:

    worker: bundle exec sidekiq -c 5 -v
    
    0 讨论(0)
提交回复
热议问题