A
A
Automat2017-08-18 11:10:16
git
Automat, 2017-08-18 11:10:16

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 like
exec('git pull');
git clone http://project.git -b branch-name

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dmitriy, 2017-08-18
@nomotrack

so there are pipelines in bitbacket
don't block the bike

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question