Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
251 views
in Technique[技术] by (71.8m points)

Heroku Pipelines: Configuration from app.json is being ignored

I am trying to setup Heroku Pipelines and would like to configure my enviroment and build process using app.json. But my app.json is being ignored.

That's how my repo looks like:

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

I made a simple app.json but no buildpack is being installed, no database provisioned and so on.

    {
      "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"
        }
      ]
    }
    

Does anyone have an idea why the configuration from app.json is not being used?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

So, here is the solution the problem: The configuration in app.json will only be used when the heroku app is created the first time. So you need to delete the app and create a new one to see the changes taking place.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...