开源地址:webhookit
DEMO 预览地址:http://webhookit.hust.cc/
使用 Flask 做的,代码很少更简单,部署更加简单。
之前写过一个比较复杂的,带有比较好 web UI 界面的 git-webhook ,虽然使用起来比较爽,但是开始部署的时候还是比较麻烦的。
所以简化了这个项目,形成新项目:https://github.com/hustcc/webhookit,主要是简化部署。
pip install webhookit之后,系统会有两个命令工具: webhookit , webhookit_config 。
怎么使用,我举个简单的例子:
# 1. install webhookit
pip install webhookit
# 2. initial a webhookit config file
webhookit_config > /home/hustcc/webhook-configs/config4hustcc.py
# 3. update config4hustcc.py with your own config and save
vim config4hustcc.py
# 4. run webhookit http server
webhookit -c config4hustcc.py
然后打开 http://host:18340 看到页面,就说明部署成功了。然后将 http://host:18340/webhookit 加入到 webhook 中即可。欢迎反馈问题。
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.