Rails Heroku Sidekiq Verification Procfile Works

I installed my Procfile in the root of my application:

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

and I see the hero see it when I push the rails application through git push heroku master

 Procfile declares types -> web, worker 

The problem is that a bunch of jobs just get stuck in the "enqueue" section.

If I run heroku run bundle exec sidekiq from the command line, then only the tasks will be executed.

Any ideas on how I could debug this? Thanks!

+4
source share
1 answer

Have you started working with dinosaurs? Heroku will automatically run the type of web process for you. Check the output of heroku ps - you will probably only see your web process.

You will need to do:

  heroku ps:scale worker=1 

to add a working speaker and scale it to 1.

+14
source

Source: https://habr.com/ru/post/1482110/


All Articles