publish-pros
v1.0.4
Published
上传本地文件到服务器
Downloads
22
Readme
sftp.json 配置
npm install publish-pros -g
publish-pros -e test -p project -r // 删除 remotePath 下面的 -p remotePath 文件夹
publish-pros -e test -p project -c// 复制 localPath 下面的 -p localPath 文件夹 到 remotePath 下面的 -p remotePath 文件夹
// 或者直接 -r || -c。 localPath remotePath
{
"test": {
"project": {
"localPath": "./dist/project",
"remotePath": "/xxxx/xx/xxx/xx/xxx/xxx"
},
"localPath": "./dist/", // 复制的路径 会复制dist下的所有文件到服务器的remotePath路径
"remotePath": "/xxx/xx/xx/", // 复制到服务器的路径
"protectedRemotePath": "",
"connect": {
"host": "xxx",
"port": xxx,
"username": "xxx",
"password": "xxxx"
}
},
"master":{
"localPath": "./dist/", // 复制的路径 会复制dist下的所有文件到服务器的remotePath路径
"remotePath": "/xxx/xx/xx/xx/xx/", // 复制到服务器的路径
"protectedRemotePath": "",
"connect": {
"host": "xxx",
"port": xxx,
"username": "xxx",
"password": "xxxx"
}
}
}