deploy
Showing
1 changed file
with
5 additions
and
11 deletions
| 1 | <?php | 1 | <?php |
| 2 | #webhook.php | ||
| 2 | 3 | ||
| 3 | echo 'working'; | 4 | $cmd = shell_exec("sudo git pull 2>&1"); |
| 4 | |||
| 5 | $output = shell_exec("sudo git pull"); | ||
| 6 | 5 | ||
| 7 | echo "<pre>$output</pre>"; | 6 | #for debugging |
| 8 | 7 | echo $cmd; | |
| 9 | 8 | ?> | |
| 10 | die("done " . mktime()); | ||
| 11 | |||
| 12 | |||
| 13 | |||
| 14 | ?> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment