I'm managing my wordpress template in Bitbucket.
Each time I push
the theme, I must log in my VPS server and pull
the repo.
I want to do it automatically.
I found a solution if I run git deamon myown. Do an automatic pull request after pushing to server
But I want to use Bitbucket because it works as a backup also.
I found a Document about bitbucket's hook, but I could't find how to do it. https://confluence.atlassian.com/display/BITBUCKET/Manage+Bitbucket+hooks
Could anyone show me a solution?
I did a very basic tutorial on this:
this basic steps are:
Cant find admin?
while you are on your repository (on bitbucket) its the gearwheel in the top right. Either click on it or type 'r' and then 'a'.
Basic PHP script to make the pull:
<?php $output = shell_exec('git pull'); echo "<pre>$output</pre>"; ?>
I had this running just to proof that it is possible. Improve it :)
How to create a deployment key (step 2):
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With