Answer the question
In order to leave comments, you need to log in
Is it correct to put GitLab on the development server?
There is a development server that has a project under development in /var/www/project . I want to make /var/www/project a central git repository where I could upload changes from my home computer. And so that new developers can also upload their changes there.
1. Will it be correct if I install GitLab on this development server?
2. As far as I remember, the central git repository is usually stored on a separate machine (well, or on github.com). Developers merge their changes into it, and on the development server they pull changes from it. So right?
Help me to understand. Thank you!
Answer the question
In order to leave comments, you need to log in
The central repository (the one that multiple developers push to) must be bare - i.e. without files.
For example, GitLab just stores bare repositories.
If /var/www/project is a host only to show the site (not to develop right here), then you need to clone the repository from the central one there. When the developers push to the central one - manually or automatically do a pull to /var/www/project .
Where to install gitlab is a matter of the availability and power of your machines. In my last project, there were few machines and both gitlab and developer hosts worked on the dev machine, but in docker containers, i.e. they were not connected in any way.
If /var/www/projectthis is a host with which all developers work at once (they edit the code directly), then urgently make tea - you will have to redo it. It is better for each developer to allocate his own host where he will edit the files of his copy of the site.
1. Will it be correct if I install GitLab on this development server?Have you ever thought about what it is connected with? :)
2. As far as I remember, the central git repository is usually stored on a separate machine (well, or on github.com).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question