Rails: Starting Sidekiq on Heroku

后端 未结 7 1449
心在旅途
心在旅途 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 19:50

    No you do not need any config with Heroku for Sidekiq, just add the RedisToGo plugin and you're on. Do not forget to attribute at least 1 worker to your app in your Heroku config.

    Here is my default Procfile:

    web: bundle exec thin start -p $PORT
    worker: bundle exec sidekiq -c 5 -v
    

提交回复
热议问题