init
Showing
2 changed files
with
12 additions
and
0 deletions
.gitignore
0 → 100644
| 1 | .idea | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
.webhook.php
0 → 100644
| 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 |
-
Please register or sign in to post a comment