D
D
Dmitry Bogovik2015-10-28 12:40:01
git
Dmitry Bogovik, 2015-10-28 12:40:01

How to set up Git on 2 servers - Dev and Prod?

There are two servers located on completely different hostings, the first server is for development, the second server is already a working project, how to configure it so that we can (as I understand it is all done through a remote repository like Bitbucket) make changes on the dev server and if we everything suits, merge these changes to our already production server? Perhaps the question is a little abstract, but at least tell me which way to dig.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Osher, 2015-10-28
@miraage

habrahabr.ru/post/106912

R
riot26, 2015-10-29
@riot26

Deploy with bitbucket. Different branches - different domains

A
Alexey Shumkin, 2015-10-29
@ashumkin

I understand this is all done through a remote repository like Bitbucket

The beauty of DVCS (at least Git) is that a "central" repository is optional, and you can exchange between two copies of the repository directly. How exactly - and wrote above 183614956 .
However, it is possible to avoid the problem of accessibility from outside the .git directory that he mentioned , because it doesn't have to be a working copy subdirectory at all (see my answer How do I set up GIT on different servers with different folder structures? )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question