我正在尝试使用 heroku review 应用程序部署我们的应用程序,但我们似乎无法自动启用工作人员测功机。似乎这些formation
名称被完全忽略了。当我运行curl -n https://api.heroku.com/apps/{APP_NAME}/formation \ -H "Accept: application/vnd.heroku+json; version=3"
它时,它会返回正确数量的进程、正确的进程名称,但带有大小hobby
和数量0
,而不是app.json
.
这大致是我们Procfile
和app.json
配置的样子:
档案:
web: bundle exec puma -C config/puma.rb
worker-one: bundle exec sidekiq -c 1 -q something
worker-two: bundle exec sidekiq -c 10 -q something-else
release: bin/heroku_release_phase
应用程序.json:
{
"name": "Flowspace",
"buildpacks": [
{
"url": "https://github.com/heroku/heroku-buildpack-multi-procfile"
},
{
"url": "https://github.com/heroku/heroku-buildpack-ruby"
},
{
"url": "https://github.com/Lostmyname/heroku-buildpack-post-build-clean"
}
],
"formation": {
"web": {
"quantity": 1,
"size": "hobby"
},
"worker-one": {
"quantity": 1,
"size": "standard-1x"
},
"worker-two": {
"quantity": 1,
"size": "standard-1x"
}
},
...
}