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 c374591 commit 3e90297Copy full SHA for 3e90297
api/oracle-cloud/deploy.ts
@@ -50,7 +50,10 @@ const sshServer = isProduction ? process.env.SSH_ADDRESS_PRD : process.env.SSH_A
50
const sshKeyPath = process.env.SSH_PATH;
51
const appPath = "~/app";
52
const sshPrefix =
53
- "ssh -o StrictHostKeyChecking=no " + (sshKeyPath ? `-i ${sshKeyPath} ` : "") + sshServer + " ";
+ "ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ServerAliveCountMax=60 " +
54
+ (sshKeyPath ? `-i ${sshKeyPath} ` : "") +
55
+ sshServer +
56
+ " ";
57
58
console.log("⚠️ Cleaning up old containers ...");
59
logs = execSync(sshPrefix + '"sudo docker container prune --force"');
0 commit comments