deploy-http-push
v0.0.1
Published
> 通过 http 方式部署本地文件到开发机
Downloads
4
Readme
deploy-http-push
通过 http 方式部署本地文件到开发机
deps
node 9.0+
server
pm2 start server.js
client
- 安装
yarn add @tencent/deploy-http-push --registry=http://r.tnpm.oa.com
- 使用
const DeployPush = require('@tencent/deploy-http-push');
DeployPush({
receiver: 'http://x.x.x.x/receiver',
to: 'xxx', // 目标文件夹 绝对路径
targetDir: 'xxx', // 本地文件夾 绝对路径
headers: {
Host: 'safe.webdev.com'
// some custom headers
}
});
ISSUE
- 单文件部署