fix: added docker compose patch file

This commit is contained in:
Kerod-Fresenbet-Gebremedhin2660 2026-03-04 10:57:23 +03:00
parent f4794d006b
commit 7be4cb54f4

View File

@ -220,6 +220,13 @@ async function deployYimaruBackend(
return { success: false, message: gitResult.error!, deploymentId }; return { success: false, message: gitResult.error!, deploymentId };
} }
console.log(`Applying docker-compose patch...`);
const patchResult = await execCommand("git apply docker-compose.patch", repoPath, deploymentId);
if (!patchResult.success) {
updateDeploymentStatus(deploymentId, "failed");
return { success: false, message: `git apply docker-compose.patch failed: ${patchResult.error || patchResult.output}`, deploymentId };
}
// Go mod tidy // Go mod tidy
console.log(`Tidying Go modules...`); console.log(`Tidying Go modules...`);
const tidyResult = await execCommand(`${goEnv} && go mod tidy`, repoPath, deploymentId); const tidyResult = await execCommand(`${goEnv} && go mod tidy`, repoPath, deploymentId);