I
I
ImPuuLsE2015-02-18 21:44:15
git
ImPuuLsE, 2015-02-18 21:44:15

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

2 answer(s)
N
Nikita Gusakov, 2015-02-18
@hell0w0rd

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.

P
Puma Thailand, 2015-02-19
@opium

Git ppull do cron

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question