Access blueprint apps in preview environment

As part of my preview environment InitialDeploy hook I’d like to copy over database/file from the existing server - is there a way to get those environment variables from the “real” blueprint apps into the preview envrionment ones?

Hey Ben,

I took a stab at figuring out how to best to achieve this. I’ll save the boring details but I think the best way here would be to create an environment group with a variable pointing at your production database and then using - fromGroup: in your render.yaml to bring it into the preview environment

John B

That’s a great idea - I’ll give it a shot today.

One thing I noticed w/ preview environments is that they duplicate and recreate env groups that are defined within the render.yaml, so is your thought defining these values/the group outside of the yaml file, but referencing them in the yaml file?