在Heroku评论应用上使用N个网络测功机和M个工人测功机 [英] Use N web dynos and M worker dynos on Heroku review app
问题描述
我目前正在使用Heroku的评论"应用功能,这很棒.
唯一的问题是,目前,根据拉取请求创建一个新应用程序时,它只有1个Web Dyno和0个worker.我的应用程序需要几个Web Dynos和worker,因此我需要在仪表板中手动对其进行编辑.
创建新的Review应用程序时,是否有办法(例如通过app.json
配置)指定所使用的Dyno的数量及其类型?
I am currently using Heroku's Review apps feature and it is great.
The only issue is that at the moment, when a new app is created from a pull request, it only has 1 web Dyno and 0 workers. My app requires a couple of web Dynos and workers, hence I need to manually edit those in my dashboard.
Is there a way (e.g. through the app.json
config) to specify the number of Dynos used and their type when a new Review app is created?
推荐答案
更新:现已正式支持此功能
尝试在您的app.json
"formation": {
"web": {
"quantity": 1
},
"worker": {
"quantity": 1
}
},
https://devcenter.heroku.com/articles/app-json- schema#formation
这篇关于在Heroku评论应用上使用N个网络测功机和M个工人测功机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!