diff --git a/packages/server/src/services/compose.ts b/packages/server/src/services/compose.ts index e6aab7672..0e1fa805f 100644 --- a/packages/server/src/services/compose.ts +++ b/packages/server/src/services/compose.ts @@ -248,7 +248,7 @@ export const deployCompose = async ({ } else { await execAsync(commandWithLog); } - + command = "set -e;"; if (compose.sourceType !== "raw") { command += await generateApplyPatchesCommand({ id: compose.composeId, @@ -257,7 +257,6 @@ export const deployCompose = async ({ }); } - command = "set -e;"; command += await getBuildComposeCommand(entity); commandWithLog = `(${command}) >> ${deployment.logPath} 2>&1`; if (compose.serverId) { diff --git a/packages/server/src/services/patch.ts b/packages/server/src/services/patch.ts index 1158655e1..5d25d2baa 100644 --- a/packages/server/src/services/patch.ts +++ b/packages/server/src/services/patch.ts @@ -146,7 +146,6 @@ export const generateApplyPatchesCommand = async ({ const codePath = join(basePath, entity.appName, "code"); const resultPatches = await findPatchesByEntityId(id, type); - const patches = resultPatches.filter((p) => p.enabled); let command = `echo "Applying ${patches.length} patch(es)...";`; @@ -159,7 +158,6 @@ export const generateApplyPatchesCommand = async ({ rm -f "${filePath}"; `; } else { - // create and update: write file command += ` file="${filePath}" dir="$(dirname "$file")"