Explorar o código

update DeployApp.java

reghao hai 2 meses
pai
achega
096e7483ad

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