Running delayed_job worker on Heroku?

前端 未结 4 630
野的像风
野的像风 2021-02-05 11:03

So right now I have an implementation of delayed_job that works perfectly on my local development environment. In order to start the worker on my machine, I just run rake

4条回答
  •  遥遥无期
    2021-02-05 11:25

    Using heroku console to get workers onto the jobs will only create create a temporary dyno for the job. To keep the jobs running without cli, you need to put the command into the Procfile as @Lucaksz suggested.

    After deployment, you also need to scale the dyno formation, as heroku need to know how many dyno should be put onto the process type like this: heroku ps:scale worker=1

    More details can be read here https://devcenter.heroku.com/articles/scaling

提交回复
热议问题