HCM

Happy Coding Monkey

使用jekyll-bootstrap和github建立个人博客

2014-11-30


注意:仅在Ubuntu 14.04环境下测试过。

安装jekyll-bootstrap

http://www.ithans.com/blog/2013/02/18/jekyll-bootstrap-install/

本地测试环境

jekyll b          ## 编译
jekyll s --watch  ## 运行服务(有变动时实时编译)

出错处理

  1. jekyll serve启动服务的时候报错:
/var/lib/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime.
See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
sudo apt-get install nodejs
  1. 错误
ERROR:  Could not find a valid gem 'jekyll' (>= 0) in any repository
ERROR:  Possible alternatives: jekyll`
gem sources --remove http://rubygems.org/
gem sources -a http://ruby.taobao.org/
gem sources -l ## 确保只有taobao源
sudo gem install rack
sudo gem install jekyll