Perform an automatic retrieval request after clicking on the server

I installed gitlab on a vps server, which is also my remote control for making local changes.

When I commit and click on the server (git @ domain.com: root / project.git), the code will be updated.

In my vps, I have this workflow:

- var/www/
    - project (created through git clone git@domain.com:root/project.git)
        - Files within the project

When I click on the server, I want the server to automatically pull the changes from gitlab. I also tried with hooks after the update, but this does not work.

Should I create a bare repo? Or am I forgetting something?

+4
source share
1 answer

project.git - , , gitlab, ~git/repositories/root/project.git/hooks post-receive, .

. -/- git/gitolite permissions error".

+3

All Articles