gerson
2025-02-18 9831a1c47f949eb46f40fa468a3b476bb2bc8c72
deploy/deploy.config.js
@@ -1,5 +1,4 @@
const testWebDir = 'E:/Wi/web/test';
module.exports = {
   privateKeyPath: 'C:/ssh/id_rsa', // 本地私钥地址,位置一般在C:/Users/xxx/.ssh/id_rsa,非必填,有私钥则配置
   passphrase: '', // 本地私钥密码,非必填,有私钥则配置
@@ -13,8 +12,8 @@
      port: 22, // ssh port,一般默认22
      username: 'Administrator', // 登录服务器用户名
      password: '', // 登录服务器密码
      distPath: 'E:/Wi/web/iie', // 本地打包dist目录
      webDir: 'E:/Wi/iie', // // 测试环境服务器地址
      distPath: 'dist', // 本地打包dist目录
      webDir: 'D:/IEE/Prod', // // 测试环境服务器地址
      remoteIgnorePath: 'WI水务智能助手.apk', // 远程服务器忽略删除文件或文件夹,可填数组或字符串
      // 备份
@@ -33,7 +32,7 @@
      },
      // 部署预览
      preview: {
         url: 'https://wi.beng35.com/iie', // 部署后检查部署效果,查看的网页地址
         url: 'http://www.xpump.net/IEE/', // 部署后检查部署效果,查看的网页地址
         openInBrowser: false, // 部署完成后是否自动打开部署的网页地址
      },
   },
@@ -46,7 +45,7 @@
      username: 'administrator', // 登录服务器用户名
      password: '', // 登录服务器密码
      distPath: 'dist', // 本地打包dist目录
      webDir: 'E:/Wi/web/prod',  // 线上环境服务器地址
      webDir: 'D:/IEE/Prod',  // 线上环境服务器地址
      remoteIgnorePath: 'WI水务智能助手.apk', // 远程服务器忽略删除文件或文件夹,可填数组或字符串
      // 备份
      bakOld: {
@@ -56,7 +55,7 @@
         enable: true,
      },
      preview: {
         url: 'https://wi.beng35.com/',
         url: 'http://www.xpump.net/IEE/',
         openInBrowser: false,
      },
   },