소스 검색

update DeployApp.java

reghao 2 달 전
부모
커밋
096e7483ad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/src/main/java/cn/reghao/bnt/web/devops/deployer/service/DeployApp.java

+ 1 - 1
web/src/main/java/cn/reghao/bnt/web/devops/deployer/service/DeployApp.java

@@ -166,7 +166,7 @@ public class DeployApp {
                 } else {
                     String mgrConfig = remoteAgentConfig.getMgrConfig();
                     String mgrConfigPath = String.format("%s/%s", localDir, "bntweb.yml");
-                    textFile.write(new File(mgrConfig), mgrConfigPath);
+                    textFile.write(new File(mgrConfigPath), mgrConfig);
                 }
 
                 Result result = sftp.deploy(localDir, remoteDir, remoteHost);