We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3becfc6 commit df072fcCopy full SHA for df072fc
api/oracle-cloud/deploy.ts
@@ -52,6 +52,13 @@ const appPath = "~/app";
52
const sshPrefix =
53
"ssh -o StrictHostKeyChecking=no " + (sshKeyPath ? `-i ${sshKeyPath} ` : "") + sshServer + " ";
54
55
+console.log("⚠️ Cleaning up old images ...");
56
+logs = execSync(sshPrefix + '"sudo docker image prune --force"');
57
+console.log(String(logs));
58
+console.log("⚠️ Cleaning up old containers ...");
59
+logs = execSync(sshPrefix + '"sudo docker container prune --force"');
60
61
+
62
console.log("⚠️ Deleting old code ...");
63
logs = execSync(sshPrefix + '"rm -f -r ' + appPath + '"');
64
logs = execSync(sshPrefix + '"mkdir ' + appPath + '"');
0 commit comments