Answer the question
In order to leave comments, you need to log in
How to synchronize hosting and git repository?
Hello! There is a git repository, there are several domains on one vps, I need these domains to merge the repository to themselves, i.e. All sites should have the same content. What is the best way to organize it? You can synchronize non-instantly (not immediately after pushing to the repository), but once a day, for example.
Answer the question
In order to leave comments, you need to log in
There is a hook mechanism. That is, a change occurs and git pulls this hook. Usually repository hosts have the ability to send a request to your server, called a web-hook. And then you decide what to do on the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question