Forráskód Böngészése

更新 Sftp#deployMgrNode 方法

reghao 2 hónapja
szülő
commit
a2dea93c9d

+ 2 - 0
web/src/main/java/cn/reghao/bnt/web/devops/deployer/util/Sftp.java

@@ -294,6 +294,8 @@ public class Sftp {
         Result result = Result.success();
         try {
             FileUtils.copyFileToDirectory(new File(localDir), new File(remoteDir));
+            log.info("copy files from {} to {} done...", localDir, remoteDir);
+
             String command = String.format("cd %s && %s shutdown.sh && %s start.sh", remoteDir, bash, bash);
             ShellResult shellResult = shellExecutor.exec(command.split("\\s+"));
             int exitCode = shellResult.getExitCode();