|
@@ -1,12 +1,12 @@
|
1
|
1
|
const shell = require('shelljs')
|
2
|
2
|
const path = require('path');
|
3
|
3
|
const config = {
|
4
|
|
- ip: "192.168.3.110", // ssh地址
|
|
4
|
+ ip: "192.168.3.121", // ssh地址
|
5
|
5
|
username: "root", // ssh 用户名
|
6
|
6
|
port: 22, //端口
|
7
|
|
- password: "123456", // ssh 密码
|
8
|
|
- path: '/home/itsm/project/web/main', // 上传地址,删除地址
|
9
|
|
- buildPath: '../dist/main' // 本地打包后文件地址
|
|
7
|
+ password: "DStech@123", // ssh 密码
|
|
8
|
+ path: '/home/itsm/project/web/mdv2/main', // 上传地址,删除地址
|
|
9
|
+ buildPath: '../dist' // 本地打包后文件地址
|
10
|
10
|
}
|
11
|
11
|
let Client = require('ssh2-sftp-client');
|
12
|
12
|
|