pandaomeng / gitalk-comment

使用gitalk存储博客的评论
0 stars 0 forks source link

git 使用 webhook 实现自动部署博客 | Hexo #14

Open pandaomeng opened 5 years ago

pandaomeng commented 5 years ago

http://www.pandaomeng.com/2018/11-19-git-webhook-auto-deploy/

使用webhook,实现自动化部署一、在github上配置webhook在如下路径做如下配置: 解释: Payload URL:触发git事件时,请求的接口路径,下面我们会用node写对应的controller Secret:填写的密码,写controller接口的时候用到 Just the push event:这里我们只响应push事件 二、在自己的服务器上编写响应的接口前提:服务器上有