.webhook.php 368 Bytes
<?php

$res = system('cd /var/www/html/page/ 2>&1; sudo git pull 2>&1', $output);
var_dump($output);
//file_put_contents(".webhook.log",$res, FILE_APPEND);
file_put_contents(__FILE__.'.log',date('Y-m-d H:i:s',time()).$res.PHP_EOL,FILE_APPEND);
header("Content-type: text/html; charset=utf-8");
echo '<br/>看到 Already up-to-date 说明已经更新成功了!';


?>