D
D
Danketzu2018-10-09 19:09:09
git
Danketzu, 2018-10-09 19:09:09

How to organize version control for the production site and the development site?

So, there is a site, some mysite.ru, the corresponding repository is attached to it. This is a working site, the code of which can be changed / added / removed only if you are sure of its performance.
There is dev.mysite.ru, which is still a clone of mysite.ru, with the only difference that there are no users there and you can do whatever you want with the code. Naturally, there is also a remote repository for this site.
Now, the development team has done something on dev.mysite.ru, some new piece of working, debugged, tested code.
How to put this code on mysite.ru? The same is true if the code was not added, but changed or was removed partially or even completely.
Perhaps I did not correctly understand the essence of the work of git and it was necessary to organize everything somehow differently?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2018-10-09
@inoise

Gitflow + limit on merge in master, release branches + Jenkins

S
solascriptura, 2018-10-18
@solascriptura

You need to use GitFlow, here is a description of how it should work. ( https://habr.com/post/106912/) We also use a self-written control panel in which you can see the status of all hosting accounts (developer and other branches) in real time. If you want, contact me, I can show you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question