リンク

インストール

  • Ruby 2.0.0
  • apache アカウントでサービスとして実行
# yum group install "Development Tools"
# yum install ruby ruby-devel libicu libicu-devel zlib zlib-devel cmake
# gem install nokogiri -v 1.6.8
# gem install github-markdown gollum-rugged_adapter gollum
  • /usr/share/httpd/.gitconfig

    [user]
    	name = <名前>
    	email = <メールアドレス>
    [core]
    	autocrlf = false
    	quotepath = false
    	pager = LESSCHARSET=utf-8 less
    [fetch]
    	prune = true
    [remote "origin"]
    	prune = true
  • /etc/systemd/system/gollum@.service

    [Unit]
    Description=Gollum wiki server
    After=network.target
    
    [Service]
    Type=simple
    User=%i
    ExecStart=/usr/local/bin/gollum --bare --css --js --no-edit --adapter rugged "/path/to/gollum.git"
    Restart=on-abort
    
    [Install]
    WantedBy=multi-user.target
  • サービス登録

    # systemctl start gollum@apache
    # systemctl enable gollum@apache
    # systemctl status gollum@apache