https://github.com/makergyt/webhook
【Tool】Git push & update the Nodejs app
https://github.com/makergyt/webhook
Last synced: 28 days ago
JSON representation
【Tool】Git push & update the Nodejs app
- Host: GitHub
- URL: https://github.com/makergyt/webhook
- Owner: MakerGYT
- Created: 2019-05-15T08:52:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-02T13:20:19.000Z (over 6 years ago)
- Last Synced: 2025-10-28T08:32:13.998Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 服务端
服务端启动一个webhook监听服务,该服务会在收到push消息后执行脚本,存在则更新,不存在则克隆安装
```js
// config.js
module.exports = {
path: '',
secret: '',
contentType: 'application/json'
}
```
# 本地
本地git提交
# git仓库
所有待部署的仓库配置相同的[webhook](https://github.com/MakerGYT//settings/hooks/new)
- Payload URL
- Content type(application/json)
- Secret
# web
在打开站点时,调用接口读取git log并输出到页面
[demo](https://github.com/MakerGYT/wehook-demo)