Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/canisminor1990/webhook
🚀 wekhook tool on server side with graphical interface, receive hook messages to run bash commands.
https://github.com/canisminor1990/webhook
ejs express nodejs webhook
Last synced: 14 days ago
JSON representation
🚀 wekhook tool on server side with graphical interface, receive hook messages to run bash commands.
- Host: GitHub
- URL: https://github.com/canisminor1990/webhook
- Owner: canisminor1990
- Created: 2017-09-25T08:15:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:47:47.000Z (11 months ago)
- Last Synced: 2024-10-19T16:51:05.639Z (17 days ago)
- Topics: ejs, express, nodejs, webhook
- Language: JavaScript
- Homepage: http://hook.canisminor.cc/
- Size: 453 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wekhook
`node.js` `express` `ejs`
wekhook tool on server side with graphical interface, receive hook messages to run bash commands.
> Support: **Github / Coding**
## Demo
You can visit this [Demo Site](http://hook.canisminor.cc/)
![](https://github.com/canisminor1990/webhook/blob/master/demo.png?raw=true)
## Usage
**Clone repo:**
```bash
$ git clone [email protected]:canisminor1990/webhook.git
```
**Edit `./config.js`**
> Edit nginx to set receive domain
```js
const projects = {
example: { // location pathname -> http://hook.xxxx.xxx/example
type : 'github', // github || coding
message: false, // false || commit message
branch : 'master', // allowed branch
dir : '~/example/', // cd repo path on server
bash : ['git pull', 'yarn build'] // bash command to run
},
...
}module.exports = {
port : 8888, // port to listen
maxLength: 50, // max messages to store
logPath : 'log.json', // log path
commandConnect: '&&', // fish shell change this to ";"
projects : projects
};
```
**Setup:**
```bash
$ npm i -g forever # install forever$ yarn # install package
$ yarn start # forever start
```
**Debug:**
```bash
$ node index.js # debug with log
```## Contact
- **Author** - [Canis Minor](https://github.com/canisminor1990)
- **Email** -