web 自动部署
# 全局安装
npm install node-deploy-web
$ xxx
参数 | 描述 |
---|---|
[${name}] | 项目名称 |
- deploy.config.js 示例
module.exports = {
account: {
port: '22',
host: '167.179.xxx.xxx',
username: 'xxxx',
......
},
dist: 'dist/',
fileName: 'build.zip',
remoteDistName: 'testdemo',
remoteRoot: '/usr/share/nginx/html',
}
# 根据package.json配置 创建bin全局执行环境