jcq 3 dagen geleden
bovenliggende
commit
d619684ad3
1 gewijzigde bestanden met toevoegingen van 7 en 7 verwijderingen
  1. 7 7
      publish.mjs

+ 7 - 7
publish.mjs

@@ -122,7 +122,7 @@ const updateFiles = async () => {
     await sftp.connect(config);
     spinner.succeed(chalk.green('服务器连接成功'));
     console.log(chalk.blue('→'), chalk.gray('开始上传文件...'));
-    await sftp.uploadDir('dist', '/data/data-marketing-platform/build');
+    await sftp.uploadDir('dist', '/data/seo-vue/build');
     console.log(chalk.green('✓'), chalk.blue('6888端口文件上传完成'));
    
 
@@ -130,12 +130,12 @@ const updateFiles = async () => {
 
     console.log(createSeparator('开始部署 6888 端口'));
     await command([
-      "cd /data/data-marketing-platform && pwd",
-      "cd /data/data-marketing-platform && ls -la",
-      "cd /data/data-marketing-platform && docker rm -f seo-vue",
-      "cd /data/data-marketing-platform && docker rmi seo-vue",
-      "cd /data/data-marketing-platform && docker build -t seo-vue .",
-      "cd /data/data-marketing-platform && docker run -d --name seo-vue -p 6888:80 seo-vue"
+      "cd /data/seo-vue && pwd",
+      "cd /data/seo-vue && ls -la",
+      "cd /data/seo-vue && docker rm -f seo-vue",
+      "cd /data/seo-vue && docker rmi seo-vue",
+      "cd /data/seo-vue && docker build -t seo-vue .",
+      "cd /data/seo-vue && docker run -d --name seo-vue -p 6888:80 seo-vue"
     ], config, "6888");