app.json 中的 Heroku 管道部署 Hook HTTP
Heroku Pipeline Deploy Hook HTTP in app.json
我正在设置 Heroku 管道,我想添加 "add-on" 属性,但是我没有看到它们应用于我的环境。
插件块的格式是:
"addons": [
"sendgrid",
{
"plan": "deployhooks:http",
"as": "SLACK-ENG-STATUS",
"options": {
"url": "THIS IS A RANDOM URL"
}
}
],
这是创建插件的正确语法吗?当我直接部署到它时,我没有在暂存应用程序中看到配置。
您希望您的插件在部署时创建吗?因为那不是 app.json 的工作方式。 app.json 只为以下对象创建了您的插件:
- 评价应用(https://devcenter.heroku.com/articles/github-integration-review-apps#app-json)
- 当您使用平台 API 创建应用程序时 (https://devcenter.heroku.com/articles/setting-up-apps-using-the-heroku-platform-api),包括通过 Heroku Button
如果您已有应用程序,app.json 中的条目将不会在部署时对其进行修改。
我正在设置 Heroku 管道,我想添加 "add-on" 属性,但是我没有看到它们应用于我的环境。
插件块的格式是:
"addons": [
"sendgrid",
{
"plan": "deployhooks:http",
"as": "SLACK-ENG-STATUS",
"options": {
"url": "THIS IS A RANDOM URL"
}
}
],
这是创建插件的正确语法吗?当我直接部署到它时,我没有在暂存应用程序中看到配置。
您希望您的插件在部署时创建吗?因为那不是 app.json 的工作方式。 app.json 只为以下对象创建了您的插件:
- 评价应用(https://devcenter.heroku.com/articles/github-integration-review-apps#app-json)
- 当您使用平台 API 创建应用程序时 (https://devcenter.heroku.com/articles/setting-up-apps-using-the-heroku-platform-api),包括通过 Heroku Button
如果您已有应用程序,app.json 中的条目将不会在部署时对其进行修改。