1.0.0 • Published 10 months ago
wkdeploy v1.0.0
使用说明
安装
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
1.0.0
10 months ago