8
We are adopting the use of an homologation server here in our company, but we still do not know how to organize the development flow from this paradigm, since currently each developer when he wants to consolidate the modifications implemented performs push or merge directly to origin/master, whether or not using a branch for this.
This relationship occurs only between the developer’s machine and the production server, which in turn has in each repository the respective script Hooks/post-receive for automated deployment to the directory /var/www.
Our new environment will work as shown below, where each square is a remote and each circle represents a branch fixed:
I have not yet defined whether in the approval environment the design will be implemented from the branch test and in the origin (production) I will use only the branch master, or whether I will make this distinction only from remote, both projects are executed from the same branch master, because I don’t know the ideal solution in these cases. What do you suggest to me? How do you use with your teams?
execelent suggestion. The company I work in, because I’m not in the software development business, has a more conservative culture, so in our case it is not possible to use Github to facilitate this process, however, it is very interesting to work with pull requests anyway. I also believe that adopting a different branch for homologation and another for production is the best alternative, although it is still necessary to work with different remotes, since we have two different servers for each situation.
– mayconfsbrito