From 2e46b22e75d5bf34273e72c855471cf00c48a8a0 Mon Sep 17 00:00:00 2001 From: Javier Blanco Date: Thu, 30 Apr 2026 11:31:14 +0700 Subject: [PATCH] clean 3 --- deploy.php | 128 ----------------------------------------------------- 1 file changed, 128 deletions(-) delete mode 100644 deploy.php diff --git a/deploy.php b/deploy.php deleted file mode 100644 index 20cd84d..0000000 --- a/deploy.php +++ /dev/null @@ -1,128 +0,0 @@ -&1', - 'cd ' . escapeshellarg(REPO_PATH) . ' && ' . GIT_BIN . ' checkout ' . escapeshellarg(ALLOWED_BRANCH) . ' 2>&1', - 'cd ' . escapeshellarg(REPO_PATH) . ' && ' . GIT_BIN . ' pull origin ' . escapeshellarg(ALLOWED_BRANCH) . ' 2>&1', -]; - -$outputAll = []; -$returnCode = 0; - -foreach ($commands as $cmd) { - $output = []; - $cmdReturn = 0; - exec($cmd, $output, $cmdReturn); - - $outputAll[] = '$ ' . $cmd; - $outputAll[] = implode("\n", $output); - $outputAll[] = 'exit_code=' . $cmdReturn; - - if ($cmdReturn !== 0) { - $returnCode = $cmdReturn; - break; - } -} - -log_line("PROJECT_KEY=" . PROJECT_KEY . "\n" . implode("\n", $outputAll) . "\n---"); - -if ($returnCode !== 0) { - respond(500, 'Deploy failed. Revisa deploy.log'); -} - -respond(200, 'Deploy OK'); \ No newline at end of file