Answer the question
In order to leave comments, you need to log in
Why doesn't php webhook git work?
Good afternoon. The problem is that we need an auto deploy repository for the production site. I read it and decided to do everything through the webhook of the repository, and in the root of the site I hung an underscript that pulled changes from the repository.
<?php
system('git pull');
?>
Answer the question
In order to leave comments, you need to log in
A beautiful solution to the problem is here https://gitlab.com/kpobococ/gitlab-webhook/tree/master :)
when you run the script as a webserver user, run it manually and see what your script outputs. or log and then read the logs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question