• 请不要在回答技术问题时复制粘贴 AI 生成的内容
nosay
V2EX  ›  程序员

求使用 webhook 的正确姿势?

  •  
  •   nosay · Jun 12, 2018 · 3938 views
    This topic created in 2897 days ago, the information mentioned may be changed or developed.

    目前一台服务器只装了一个 nginx 用来跑一个前端项目,请问如何实现 github 的 webhook ?服务器上内置 python2.7,只能通过 python,node,或其它语言搭建一个 web 环境解决吗?

    5 replies    2018-06-12 19:57:19 +08:00
    scriptB0y
        1
    scriptB0y  
       Jun 12, 2018   ❤️ 2
    你是要实现一个自动 build 吗,我用 nc + systemd + shell 脚本搞了一下 https://www.kawabangga.com/posts/2927
    hash
        2
    hash  
       Jun 12, 2018   ❤️ 2
    自己写了一个..目前勉强自己用着
    https://github.com/moonagic/GoWebhook
    KuroNekoFan
        3
    KuroNekoFan  
       Jun 12, 2018 via iPhone
    写个简单的 webapp 处理 webhook 成本也很低吧,可扩展性也好
    lfzyx
        4
    lfzyx  
       Jun 12, 2018
    监听下端口,能获取 http 请求就行了
    up1and
        5
    up1and  
       Jun 12, 2018
    https://github.com/adnanh/webhook 这个就挺好用的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1026 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 22:27 · PVG 06:27 · LAX 15:27 · JFK 18:27
    ♥ Do have faith in what you're doing.