1

My team has recently started using review apps. However, before tests can be run on a review app, we need to manually change the configuration of an addon. This manual step breaks our test workflow. Is there any way to transfer addon configuration to a review app?

  • 1
    If you have a specific example of something you're trying to configure, let me know and I'll update my answer. I believe you should be able to configure most things through "options", but it likely depends on the addon. – Charlie Weems Dec 16 '17 at 00:12

1 Answers1

1

Heroku allows you to specify addons for review apps in your app.json like so:

{
 …
 "addons": [
    {
      "plan": "heroku-postgresql",
      "as": "BACKUP_DATABASE",
      "options": {
         "version": "9.5"
      }
    }
  ]
}

Note that according to the docs, review apps are provisioned with the default "ephemeral" plan from the provider. Also, not all apps support review/CI apps.

If one of your addons does not support review apps, you should see an error message similar to <add-on service slug> has opted out of supporting Review and CI apps when the review app attempts to deploy.

Charlie Weems
  • 1,682
  • 1
  • 16
  • 28
  • yes i have been using the addon part, with the options. However, for my specific addon (foundelasticsearch), i need to enable stored scripts, an option which is not available on the options. – Florent Chatterji Dec 17 '17 at 07:35