How to copy staging/dev/production application config variable to Review app config vars?

Issue

The New Review Apps doesn't support inheriting config vars, you can specify config variables through app.json or Set any sensitive environment variables in the Review app config vars section of your pipeline’s settings, but there is no CLI option to copy config variables of other application into Review app config vars section.

Resolution

To copy all the config variables of other application into Review app config vars section, we will use Platform API, run following command:

CONFIG_VARS=$(echo $(heroku config -a <APPLICATION_NAME> --json)) && curl -n -X PATCH https://api.heroku.com/pipelines/{pipeline_id}/stage/review/config-vars -d "$CONFIG_VARS" -H "Content-Type: application/json" -H "Accept: application/vnd.heroku+json; version=3"

Change <APPLICATION_NAME> to the name of the application from which you want to copy config vars and change {pipeline_id} with the id of pipeline in which you wants to copy config vars.

Note: Review Apps need to be enabled on pipeline and there should be at least one review app.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support
Terms of Service Privacy Cookies © 2020 Salesforce.com