MAC下安装gollum

gollum 是一个基于markdown和git的wiki系统的构造工具,可以方便的使用gollum来构建自己的wiki. 在mac下的安装步骤如下:

  • 设置gem sources

    ➜  ~ gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
    https://ruby.taobao.org/ added to sources
    https://rubygems.org/ removed from sources
    
  • 使用brew安装相关依赖

    ➜  ~ brew install icu4c
    ==> Downloading https://homebrew.bintray.com/bottles/icu4c-56.1.el_capitan.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Pouring icu4c-56.1.el_capitan.bottle.tar.gz
    ==> Caveats
    
  • 安装gollum

    ➜  ~ sudo gem install gollum
    
  • 初始化工作目录及git环境并启动gollum

    ➜  tmp mkdir -p gollum-test
    ➜  tmp cd gollum-test
    ➜  gollum-test git init
    Initialized empty Git repository in ~/tmp/gollum-test/.git/
    ➜  gollum-test git:(master) gollum
    [2017-05-04 07:39:51] INFO  WEBrick 1.3.1
    [2017-05-04 07:39:51] INFO  ruby 2.0.0 (2015-12-16) [universal.x86_64-darwin15]
    == Sinatra (v1.4.7) has taken the stage on 4567 for development with backup from WEBrick
    [2017-05-04 07:39:51] INFO  WEBrick::HTTPServer#start: pid=38641 port=4567
    
  • 访问页面 根据启动提示,直接访问地址: http://localhost:4567 ,就进入了如下所示的页面:
    file