Skip to content

Commit 94bf146

Browse files
committed
Enhance deployment command to remove orphaned containers during startup
1 parent 6a2838f commit 94bf146

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/oracle-cloud/deploy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ logs = execSync(
7979
console.log("✅ New code uploaded.");
8080

8181
console.log("\n⚙️ Starting up the app");
82-
logs = execSync(sshPrefix + '"cd ' + appPath + ' && docker compose up -d --build"');
82+
logs = execSync(
83+
sshPrefix + '"cd ' + appPath + ' && docker compose up -d --build --remove-orphans"',
84+
);
8385
console.log(String(logs));
8486
console.log("✅ Deployment successful.");

0 commit comments

Comments
 (0)