GithubHelp home page GithubHelp logo

qidouhai / auto-publish-hexo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhipengyan/auto-publish-hexo

0.0 1.0 0.0 27 KB

利用git webhooks 自动发布hexo文章

Home Page: http://blog.sunnyyan.com/2015/05/01/hexo-auto-generate/

License: Apache License 2.0

CoffeeScript 100.00%

auto-publish-hexo's Introduction

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

auto-publish-hexo's People

Contributors

zhipengyan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.