This commit is contained in:
F4ilji
2026-04-10 09:01:47 +05:00
parent 1c6f09ed80
commit 9e35cf848d
25 changed files with 195 additions and 155 deletions
@@ -37,9 +37,9 @@ class DeploySiteAction
unlink($this->logFile);
}
// Запускаем deploy.sh в фоне через sudo (полный путь + NOPASSWD для www-data)
// Запускаем deploy.sh в фоне (docker socket проброшен в контейнер)
$command = sprintf(
'/usr/bin/sudo bash %s > %s 2>&1 &',
'bash %s > %s 2>&1 &',
escapeshellarg($this->deployScript),
escapeshellarg($this->logFile)
);