How to create git workflow on heroku?

585 Views Asked by At
        Production        
            ↑             
         Staging          
           ↗↘          
       Development        
         ↗↙ ↖↘          
  Developer1  Developer2  

How to create git workflow on heroku?

1

There are 1 best solutions below

1
On

It depends if you have one Git repo on the Heroku side, or several.

With several repo, you can assign each one for a step in the development lifecycle.
But considering the architecture behind a Git repo, it might be easier to manage your dynos in relation with one repo (see here for more on Dynos).

That means you can define one branch per development steps (one dev branch, one staging branch, one prod branch) on the Heroku side (in your local repo, you can have as many branches as you need).