Octopress

A collection of 2 posts
从 Octopress 到 Hexo
Blog

从 Octopress 到 Hexo

One. Two. Three. Go~ 好吧,我又折腾了。这次是从 Octopress 换到了 Hexo [http://zespia.tw/hexo/],一个基于 node.js 的博客程序[1]。 其实 Octopress 是很不错的,我之前也没少折腾 [https://lucifr.com/tags/octopress],但这货有个很大的问题就是基于 ruby 的生成速度太不理想,尤其是文章多了以后,每次都要等上几分钟,虽然我把生成的工作交给了服务器 [https://lucifr.com/2011/12/21/octopress-on-server-and-portable-scheme/] ,但每次发文章都这么慢可让人受不了。 幸好关注了之前介绍过的 Octopress 主题 Slash [https://lucifr.com/2012/
2 min read
服务器端 Octopress 搭建及移动方案
Blog

服务器端 Octopress 搭建及移动方案

玩了几天的 Octopress [https://lucifr.com/2011/11/23/bye-bye-wordpress-hello-octopress/] ,又学到了不少 git 方面的知识,越发感叹 Octopress/Jekyll 和版本控制的各种美好。而看过了 @masukomi 的文章 [http://weblog.masukomi.org/2011/12/19/serving-octopress-from-a-self-hosted-git-repository/] 之后又学到了新东西,这里介绍一下。 不同于 Octopress 官方文档中的在本地生成静态网站再通过 rsync 同步到服务器,本文介绍的方法是在服务器上搭建环境,然后直接将 Octopress push 到自建的服务器端 Git 仓库,由服务器来生成静态页面。 这样搞的好处 除了多出一个服务器备份 repo 外,最重要的是让服务器本身具备了生成功能而不仅仅是储存页面,使整个系统得以脱离本地环境而实现功能,通过添加一些脚本(比如
6 min read