Skip to content

Commit

Permalink
Deploy test simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpetros committed Mar 3, 2024
1 parent 9d5cc7c commit 7b164fc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions www/deploy.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?php
$key = $_POST['key'] ?? false;
if ($key == "test") {
shell_exec("cd /var/www && git pull");
sendStatus(200);
}
sendStatus(403);
echo hi;
sendStatus(200);
/* $key = $_POST['key'] ?? false; */
/* if ($key == "test") { */
/* shell_exec("cd /var/www && git pull"); */
/* sendStatus(200); */
/* } */
/* sendStatus(403); */
?>

0 comments on commit 7b164fc

Please sign in to comment.