File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,14 @@ const appPath = "~/app";
5252const sshPrefix =
5353 "ssh -o StrictHostKeyChecking=no " + ( sshKeyPath ? `-i ${ sshKeyPath } ` : "" ) + sshServer + " " ;
5454
55- console . log ( "⚠️ Cleaning up old images ..." ) ;
56- logs = execSync ( sshPrefix + '"sudo docker image prune --force"' ) ;
57- console . log ( String ( logs ) ) ;
5855console . log ( "⚠️ Cleaning up old containers ..." ) ;
5956logs = execSync ( sshPrefix + '"sudo docker container prune --force"' ) ;
6057console . log ( String ( logs ) ) ;
6158
59+ console . log ( "⚠️ Cleaning up old images ..." ) ;
60+ logs = execSync ( sshPrefix + '"sudo docker image prune --force"' ) ;
61+ console . log ( String ( logs ) ) ;
62+
6263console . log ( "⚠️ Deleting old code ..." ) ;
6364logs = execSync ( sshPrefix + '"rm -f -r ' + appPath + '"' ) ;
6465logs = execSync ( sshPrefix + '"mkdir ' + appPath + '"' ) ;
You can’t perform that action at this time.
0 commit comments