🌈 A light-weight web server for reacting GitHub Webhooks and executing shell commands. For Hexo Blog. Minimal 0.7kb
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
qwqaq-webhook-server.py

README.md

qwqaq-webhook-server

A light-weight web server for reacting GitHub Webhooks and executing shell commands.

一个简单 WEB 服务器,当收到 GitHub Webhooks 发出的请求后执行 shell 命令,如 git pull,仅此而已

Hexo 用这个配合 hexo-deployer-git 使用 hexo clean | hexo g | hexo d,服务器端自动执行 git pull,美滋滋!? #(滑稽)

Requirements

  • Python 3
  • Flask

Quick Start

首先,配置 qwqaq-webhook-server.py 中的 HOOK_ACTIONS=[],然后:

python qwqaq-webhook-server.py

另:Windows Server 可使用 NSSM 让其变成服务,后台运行

Coding 的 Webhooks 这样配置

请求 URL: http://[domain]:[port]/[path]?token=[token]

Author

ZNEIAT