0.0.9 • Published 5 years ago

webpack-http-push v0.0.9

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

依托于 HTTP POST 远程部署代码至服务器

new HttpPush({
    receiver: 'http://127.0.0.1:7999/receiver',
    to: '/home/www',
    data: {
        t: +new Date()
    },
    include: [
        path.resolve(__dirname, '..', 'src'),
        path.resolve(__dirname, '..', 'public'),
        /^\/dist\/assets\/*.js/i
    ],
    exclude: []
})

push-server是服务端接收程序, 与http-push配合使用。

  • 项目中内置 http-push-server, npm安装完毕后可去安装路径找出;
    • 执行代码 npm i . 进行安装;
    • 运行服务 node index.js 7999 or pm2 start index.js --name [PUSH-SERV] -- 7999;
    • 可扩展 token 验证, 以防止公网部署被滥用; (待开发)

PS: 更多待完善, 稍晚些关联github issue;

0.0.9

5 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago