启动 heroku delayed_job 个工人
Starting heroku delayed_job workers
我正在尝试按照 https://devcenter.heroku.com/articles/delayed-job 设置 delayed_jobs。
If you don’t see your worker you may need to scale it up with the
heroku command:
$ heroku ps:scale worker=1
每次部署时我什么时候必须运行这个?
如果您在 Heroku 上转到您的应用程序,在 resource
选项卡下,您将看到活动的测功机。
或者,如果您从终端 运行:
$ heroku ps
您将获得所有活跃测功机的列表。
所以,如果没有worker dyno,你现在可以添加一个并扩大规模。
或者如果有一个 worker dyno 但在 0
(零)规模,那么您可以使用上面的命令将其扩大到一个:
$ heroku ps:scale worker=1
但是请注意,工人测功机将工作 with/for a scheduler addon.
我正在尝试按照 https://devcenter.heroku.com/articles/delayed-job 设置 delayed_jobs。
If you don’t see your worker you may need to scale it up with the heroku command:
$ heroku ps:scale worker=1
每次部署时我什么时候必须运行这个?
如果您在 Heroku 上转到您的应用程序,在 resource
选项卡下,您将看到活动的测功机。
或者,如果您从终端 运行:
$ heroku ps
您将获得所有活跃测功机的列表。
所以,如果没有worker dyno,你现在可以添加一个并扩大规模。
或者如果有一个 worker dyno 但在 0
(零)规模,那么您可以使用上面的命令将其扩大到一个:
$ heroku ps:scale worker=1
但是请注意,工人测功机将工作 with/for a scheduler addon.