Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 622 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 622 Bytes

WebhookExample

利用Github的Webhook功能进行持续集成

  • index.js已废弃.
  • index2.js需要配置的内容:
// 在Webhooks中设定的secret
var secret = ''
// 在Webhooks中设定的Payload URL
var url = ''
...
// 监听地址端口
}).listen(6606, '127.0.0.1');

开启服务

npm install
node index2.js

简单的systemd启动服务

[Unit]
Description=GithubWebhookService

[Service]
WorkingDirectory=/home/webhook
ExecStart=/usr/bin/node path/to/index2.js

[Install]
WantedBy=multi-user.target