I manage my wordpress template on Bitbucket.
Every time I pushtopic, I have to log in to my VPS and pullrepo server . I want to do this automatically.
push
pull
I found a solution if I ran git deamon myown. Perform an automatic extraction request after clicking on the server
But I want to use Bitbucket because it also works as a backup.
I found a bitbucket hook document, but I could not find how to do this. https://confluence.atlassian.com/display/BITBUCKET/Manage+Bitbucket+hooks
Can someone show me a solution?
:
?( ), . , "r", "a".
PHP script, pull:
<?php $output = shell_exec('git pull'); echo "<pre>$output</pre>"; ?>
, , . :)
( 2):