blurHY / auto-publish-hexo

利用git webhooks 自动发布hexo文章

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

auto-publish-hexo

利用 git webhooks 自动发布hexo文章

使用方法

1.install

cd hexo安装路径
git clone https://github.com/zhipengyan/auto-publish-hexo
cd auto-publish-hexo
npm install

2.打开目录下的 config.json 进行修改

{
     "time_zone": "Asia/Shanghai",           //所在时区,在log中显示时间了,vps一般不是本地时区
     "webhook_secret": "your secret",        //github webhooks设置的secret
     "path": {                               //如果hexo的配置为默认的话不用修改下面的
       "hexo_path": "../",                   //hexo目录相对路径
       "hexo_source_path": "../source"       //hexo source目录的相对路径,也就是文章目录
     },
     "listen_port": 8888                     //监听的端口
}

3.使用 npm start 或者 node index.js 运行

About

利用git webhooks 自动发布hexo文章

License:Apache License 2.0


Languages

Language:CoffeeScript 100.0%