wkdeploy
v1.0.0
Published
发布工具
Downloads
1
Readme
使用说明
安装
npm install -D deployutils
项目根目录下新建配置文件 deploy.test.json
{
"distPath": "dist",
"remotePath": "/test/pc/tender/",
"proxyApi": "/test-api",
"OSS": {
"region": "",
"accessKeyId": "",
"accessKeySecret": "",
"bucket": "",
"domain": ""
},
"nginx": {
"host": "",
"user": ""
}
}
配置package.json
{
"scripts": {
"deploy:test": "deployutils test"
}
}
执行命令
npm run deploy:test
ssh-copy-id -i key_file user@host