M
M
MRcracker2021-02-07 00:03:02
git
MRcracker, 2021-02-07 00:03:02

How to update a site from a git repository?

Good evening. Please tell me in which direction I should look for a solution to my problem.

There is a project. Its changes are pushed into git from the test server.
This project will soon be up and running on a real server.

Is it possible to make sure that, if necessary, certain branches with changes are uploaded to the real server directly from git?

What is the best way to set up the project so that changes from the test server can be added to the real one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BorLaze, 2021-02-07
@MRcracker

You don't need to download branches. Branch - for development. master - for "combat code".
We release the feature in the branch, check it, if we think that everything is OK, we merge it into the master.
A commit to the master starts CI / CD, which runs the tests (you have them, right?) And, in case of a successful build, spills the code to the production.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question