【问题标题】:Heroku Pipelines: Configuration from app.json is being ignoredHeroku Pipelines:来自 app.json 的配置被忽略
【发布时间】:2023-04-08 07:55:01
【问题描述】:

我正在尝试设置 Heroku Pipelines,并希望使用 app.json 配置我的环境和构建过程。但是我的 app.json 被忽略了。

这就是我的仓库的样子:

     - Dir1
     - Dir2
     - ...
     - app.json
     - some other files

我做了一个简单的 app.json,但是没有安装 buildpack,没有配置数据库等等。

    {
      "formation": {
        "web": {
          "quantity": 1,
          "size": "free"
        },
        "worker": {
          "quantity": 1,
          "size": "free"
        }
      },
      "addons": [
        {
          "plan": "heroku-postgresql:hobby-dev"
        },
        {
          "plan": "heroku-redis:hobby-dev"
        }
      ],
      "buildpacks": [
        {
          "url": "heroku/nodejs"
        }
      ]
    }
    

有没有人知道为什么 app.json 的配置没有被使用?

【问题讨论】:

    标签: heroku heroku-cli


    【解决方案1】:

    所以,这里是问题的解决方案:app.json 中的配置将在首次创建 heroku 应用程序时使用。因此,您需要删除该应用并创建一个新应用以查看发生的更改。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-13
      • 1970-01-01
      • 1970-01-01
      • 2021-06-19
      • 2019-02-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多