Clean: remove test changes

This commit is contained in:
Dekart Deploy Bot 2026-05-07 17:35:52 +03:00
parent 8c9342daac
commit 9b5806ba0e
2 changed files with 0 additions and 37 deletions

View File

@ -1,34 +0,0 @@
<?php
define('ABSPATH', __DIR__ . '/');
echo "<h1>Git Push Diagnostic - Step by Step</h1>";
// Шаг 1: git add
echo "<h2>Step 1: git add .</h2>";
exec('cd ' . escapeshellarg(__DIR__) . ' && git add . 2>&1', $add_out, $add_code);
echo "Return code: $add_code<br>";
echo "Output:<pre>" . (empty($add_out) ? '(empty)' : implode("\n", $add_out)) . "</pre>";
// Шаг 2: git commit
echo "<h2>Step 2: git commit</h2>";
exec('cd ' . escapeshellarg(__DIR__) . ' && git commit -m "Test from web process" 2>&1', $commit_out, $commit_code);
echo "Return code: $commit_code<br>";
echo "Output:<pre>" . (empty($commit_out) ? '(empty)' : implode("\n", $commit_out)) . "</pre>";
// Шаг 3: git push (только если commit успешен)
if ($commit_code === 0) {
echo "<h2>Step 3: git push</h2>";
exec('cd ' . escapeshellarg(__DIR__) . ' && git push 2>&1', $push_out, $push_code);
echo "Return code: $push_code<br>";
echo "Output:<pre>" . (empty($push_out) ? '(empty)' : implode("\n", $push_out)) . "</pre>";
} else {
echo "<h2>Step 3: Skipped (commit failed)</h2>";
}
// Дополнительная информация
echo "<h2>Debug Info</h2>";
echo "Current user: " . posix_getpwuid(posix_geteuid())['name'] . "<br>";
echo "Git config sshCommand: ";
exec('cd ' . escapeshellarg(__DIR__) . ' && git config --get core.sshCommand 2>&1', $ssh_cmd);
echo "<pre>" . (empty($ssh_cmd) ? '(not set)' : implode("\n", $ssh_cmd)) . "</pre>";
?>

View File

@ -894,6 +894,3 @@ function dekart_add_preload_hints() {
// резерв для preload hints // резерв для preload hints
} }
add_action('wp_head', 'dekart_add_preload_hints', 1);// Тестовая строка для проверки деплоя 2026-05-06 add_action('wp_head', 'dekart_add_preload_hints', 1);// Тестовая строка для проверки деплоя 2026-05-06
// Test comment Thu May 7 17:21:53 MSK 2026
// Test Thu May 7 17:27:22 MSK 2026
// Admin test Thu May 7 17:27:51 MSK 2026