Heroku pipelines - How do I make staging apps working on a different database compared to production apps?

209 Views Asked by At

I have a django app and I am deploying it using Heroku pipeline. I am trying to understand what's the best way to handle the fact that each staging apps should not use production databases (right?)

What's the best way to do so? It seems that I can't set env variable that are "phase" specific (can i?)

1

There are 1 best solutions below

0
On

Looks like Heroku takes care of spinning up databases for the testing app on its own so I can close this one.