A hook that allows you to "pull" out of the VPS when I "click" on the bitpack

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.

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?

+5
source share
1

:

:

  • .
  • ( → → )
  • - SSH
  • git - ( ) www-data ( apache2)
  • php script, git pull
  • POST- php-pull-script ( - > admin → → POST)

?
( ), . , "r", "a".

PHP script, pull:

<?php
    $output = shell_exec('git pull');
    echo "<pre>$output</pre>";
?>

, , . :)

( 2): enter image description here

+5

All Articles