Answer the question
In order to leave comments, you need to log in
Is it possible to deploy via git pull?
I read the answers to the question How to organize a deployment with Bitbacket? there, at the end of Andrey Khokhlov 's answer, an example of a php script is given. I set up a hook from bitbucket to a php file in which there is only one line:
Everything works. Yes, I understand the disadvantage of this method is that my hook is set to push, and I can push not to the master, but to the dev branch, and then the project will still pull together, well, there are options:
1) reconfigure the hook to another condition
2) do not the whole pull, but something likeexec('git pull');
git clone http://project.git -b branch-name
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question