deploy
Showing
1 changed file
with
4 additions
and
10 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 | |||
| 7 | echo "<pre>$output</pre>"; | ||
| 8 | |||
| 9 | |||
| 10 | die("done " . mktime()); | ||
| 11 | |||
| 12 | |||
| 13 | 5 | ||
| 6 | #for debugging | ||
| 7 | echo $cmd; | ||
| 14 | ?> | 8 | ?> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment