Upload cli 是一个前端本地ftp部署工具
npm install web-upload-cli -g
upload-cli start
- 根目录添加 upload.conofig.json
{
"development": {
"host": '服务器ip',
"port": '22',
"username": '用户名称',
"privateKey": '密钥相对路径',
"localDir": '相对路劲',
"remoteDir": '服务器目标路劲',
},
"production": {
"host": '服务器ip',
"port": '22',
"username": '用户名称',
"privateKey": '密钥相对路径',
"localDir": '相对路劲',
"remoteDir": '服务器目标路劲',
}
}