8c1e7eff by yangjianbin

init

1 parent 37c87208
1 .idea
...\ No newline at end of file ...\ No newline at end of file
1 <?php
2
3 $res = system('cd /var/www/html/page/ 2>&1; sudo git pull 2>&1', $output);
4 var_dump($output);
5 //file_put_contents(".webhook.log",$res, FILE_APPEND);
6 file_put_contents(__FILE__.'.log',date('Y-m-d H:i:s',time()).$res.PHP_EOL,FILE_APPEND);
7 header("Content-type: text/html; charset=utf-8");
8 echo '<br/>看到 Already up-to-date 说明已经更新成功了!';
9
10
11 ?>
...\ No newline at end of file ...\ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!