简体   繁体   English

Github WebHooks和ssh

[英]Github WebHooks and ssh

In order to use WebHook URLs in Github, do I need to be logged into my web server using ssh? 为了在Github中使用WebHook URL,我是否需要使用ssh登录我的Web服务器? I cannot seem to get WebHooks to work and I thought maybe this would be a problem. 我似乎无法让WebHooks工作,我想这可能是一个问题。

Not really. 并不是的。 This is what Github has to say regarding Webhooks. 这就是Github对Webhooks所说的话。

We'll hit these URLs with POST requests when you push to us, passing along information about the push. 当您向我们推送时,我们将使用POST请求点击这些URL,并传递有关推送的信息。

Maybe you are not processing the JSON received from Github properly. 也许你没有正确处理从Github收到的JSON。 To test, you can just create a temporary bin on RequestBin , add this as the Webhook URL on your Github repo, and hit the Test Hook button. 要进行测试,您只需在RequestBin上创建一个临时bin,将其添加为Github仓库中的Webhook URL,然后点击Test Hook按钮。

I've found little tools to help deploy your code from Github or Gitlab so I created Deepl.io to handle Web-Hooks and call scripts to deploy on your own server. 我找到了很少的工具来帮助从Github或Gitlab部署你的代码,所以我创建了Deepl.io来处理Web-Hooks并调用脚本来部署在你自己的服务器上。 This handles the JSON that's sent from github or gitlab and uses your own script to react. 这会处理从github或gitlab发送的JSON,并使用您自己的脚本进行响应。 You can use your own PHP or shell scripts after receiving the pull notification... Check it out: http://deepl.io 收到拉动通知后,您可以使用自己的PHP或shell脚本...查看: http//deepl.io

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM