Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

Heroku pipeline drops buildpack settings for Review Apps

I'm currently using Heroku Pipeline feature for automatically detecting, building and deploying pull requests for review.

? Create new review apps for new pull requests automatically

URL pattern Pattern: Random pipeline-xxxxxx-xxxxxx.herokuapp.com

The problem is that my app needs a combination of 2 buildpacks in a specific order in order to boot properly.

The main/production app has this settings and it works fine(e.g. after each time a PR is merged).

From what I see Review Apps doesn't have a concept of buildpack settings and it tries to autodetect it each time.

What I've tried:

Open the latest Review App, set buildpacks, rebuild or push a new commit. It works fine in that Pull Request/branch/Review App but for each new PR this process has to be repeated manually.

Is there any way to overcome this issue?

question from:https://stackoverflow.com/questions/65873419/heroku-pipeline-drops-buildpack-settings-for-review-apps

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

1 Answer

0 votes
by (71.8m points)

In case you have a similar issue, one approach that you can use(that worked for me)

app.json Heroku's convention file where you can list your buildpacks among many other settings.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...