Using Resque, Puma and Scheduler together on Heroku

前端 未结 1 1155
执笔经年
执笔经年 2021-01-20 18:45

After reviewing numerous guides I would like to confirm my setup. Right now my procfile looks like:

web: bundle exec puma -C config/puma.rb          


        
相关标签:
1条回答
  • 2021-01-20 19:44

    From the blog post I found

    He mentioned to role with this now...

    web: bundle exec puma -C config/puma.rb config.ru
    worker: bundle exe rake schedule_and_work COUNT=1 QUEUE=* TERM_CHILD=1 RESQUE_TERM_TIMEOUT=10
    

    ..and upgrade to this once we need more dynos...

    web: bundle exec puma -C config/puma.rb config.ru
    resque: TERM_CHILD=1 RESQUE_TERM_TIMEOUT=10 QUEUES=* bundle exec rake resque:work
    worker: bundle exec rake resque:work
    scheduler: bundle exec rake resque:scheduler
    

    This will allow us to use a web dyno until we want to pay for full time scheduler dynos.

    0 讨论(0)
提交回复
热议问题