0.0.1 • Published 5 years ago

deploy-http-push v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

deploy-http-push

通过 http 方式部署本地文件到开发机

deps

  • node 9.0+

server

pm2 start server.js

client

  1. 安装 yarn add @tencent/deploy-http-push --registry=http://r.tnpm.oa.com
  2. 使用
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

  • 单文件部署