Skip to content
利用git webhooks 自动发布hexo文章
CoffeeScript
Branch: master
Clone or download
Pull request Compare This branch is 3 commits ahead of zhipengyan:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
config.json
index.coffee
index.js
index.js.map
package.json

README.md

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 运行

You can’t perform that action at this time.