使用Travis CI自动构建Hexo
Travis CI是什么?
Travis CI 是在线托管的持续集成服务,绑定Github项目,抓取新的代码自动进行测试构建,甚至自动部署到测试环境。 使用这项服务,每次我们提交新的代码,都能及时发现问题并修复。
为什么要使用Travis CI?
明明hexo g -d 就很方便,为什么要使用Travis CI?
最主要的是可以随时在github上修改你的博客,甚至可以在线发表博客,解决少数时候电脑上没有Hexo环境的麻烦
Travis CI 是在线托管的持续集成服务,绑定Github项目,抓取新的代码自动进行测试构建,甚至自动部署到测试环境。 使用这项服务,每次我们提交新的代码,都能及时发现问题并修复。
明明hexo g -d 就很方便,为什么要使用Travis CI?
最主要的是可以随时在github上修改你的博客,甚至可以在线发表博客,解决少数时候电脑上没有Hexo环境的麻烦
npm切换到淘宝源
1 | npm config set registry=https://registry.npm.taobao.org/ |
从淘宝源切回npm
1 | npm config set registry=http://registry.npmjs.org |
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.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment
Update your browser to view this website correctly.&npsb;Update my browser now