使用Travis CI自动构建Hexo

Travis CI是什么?

Travis CI 是在线托管的持续集成服务,绑定Github项目,抓取新的代码自动进行测试构建,甚至自动部署到测试环境。 使用这项服务,每次我们提交新的代码,都能及时发现问题并修复。

为什么要使用Travis CI?

明明hexo g -d 就很方便,为什么要使用Travis CI?
最主要的是可以随时在github上修改你的博客,甚至可以在线发表博客,解决少数时候电脑上没有Hexo环境的麻烦

阅读更多

从一台新机器开始我的博客

1.下载Git

2.下载node.js(windows下载msi版本)

npm切换到淘宝源

1
npm config set registry=https://registry.npm.taobao.org/

从淘宝源切回npm

1
npm config set registry=http://registry.npmjs.org
阅读更多

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×