npm install -D deployutils
{
"distPath": "dist",
"remotePath": "/test/pc/tender/",
"proxyApi": "/test-api",
"OSS": {
"region": "",
"accessKeyId": "",
"accessKeySecret": "",
"bucket": "",
"domain": ""
},
"nginx": {
"host": "",
"user": ""
}
}
{
"scripts": {
"deploy:test": "deployutils test"
}
}
npm run deploy:test
ssh-copy-id -i key_file user@host