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);