V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
50vip
V2EX  ›  分享创造

又一个 git-webhook 小工具 —— webhookit

  •  
  •   50vip · 2017-03-06 11:16:08 +08:00 · 3455 次点击
    这是一个创建于 2601 天前的主题,其中的信息可能已经有所发展或是发生改变。

    webhookit

    开源地址:webhookit

    DEMO 预览地址:http://webhookit.hust.cc/

    1. 介绍

    使用 Flask 做的,代码很少更简单,部署更加简单。

    之前写过一个比较复杂的,带有比较好 web UI 界面的 git-webhook ,虽然使用起来比较爽,但是开始部署的时候还是比较麻烦的。

    所以简化了这个项目,形成新项目:https://github.com/hustcc/webhookit,主要是简化部署。

    2. 怎么使用?

    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 中即可。欢迎反馈问题。

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   878 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:31 · PVG 05:31 · LAX 14:31 · JFK 17:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.