4f9d95e0663fbce3cfec822c7f4d0ef522c65935
Gollum.md
| ... | ... | @@ -0,0 +1,54 @@ |
| 1 | +[[_TOC_]]
|
|
| 2 | +
|
|
| 3 | +# リンク
|
|
| 4 | +- https://github.com/gollum/gollum
|
|
| 5 | + - [Wiki](https://github.com/gollum/gollum/wiki)
|
|
| 6 | +
|
|
| 7 | +# インストール
|
|
| 8 | +- Ruby 2.0.0
|
|
| 9 | +- apache アカウントでサービスとして実行
|
|
| 10 | +
|
|
| 11 | +```
|
|
| 12 | +# yum group install "Development Tools"
|
|
| 13 | +# yum install ruby ruby-devel libicu libicu-devel zlib zlib-devel cmake
|
|
| 14 | +# gem install nokogiri -v 1.6.8
|
|
| 15 | +# gem install github-markdown gollum-rugged_adapter gollum
|
|
| 16 | +```
|
|
| 17 | +
|
|
| 18 | +- /usr/share/httpd/.gitconfig
|
|
| 19 | +```
|
|
| 20 | +[user]
|
|
| 21 | + name = <名前>
|
|
| 22 | + email = <メールアドレス>
|
|
| 23 | +[core]
|
|
| 24 | + autocrlf = false
|
|
| 25 | + quotepath = false
|
|
| 26 | + pager = LESSCHARSET=utf-8 less
|
|
| 27 | +[fetch]
|
|
| 28 | + prune = true
|
|
| 29 | +[remote "origin"]
|
|
| 30 | + prune = true
|
|
| 31 | +```
|
|
| 32 | +
|
|
| 33 | +- /etc/systemd/system/gollum@.service
|
|
| 34 | +```
|
|
| 35 | +[Unit]
|
|
| 36 | +Description=Gollum wiki server
|
|
| 37 | +After=network.target
|
|
| 38 | +
|
|
| 39 | +[Service]
|
|
| 40 | +Type=simple
|
|
| 41 | +User=%i
|
|
| 42 | +ExecStart=/usr/local/bin/gollum --bare --css --js --no-edit --adapter rugged "/path/to/gollum.git"
|
|
| 43 | +Restart=on-abort
|
|
| 44 | +
|
|
| 45 | +[Install]
|
|
| 46 | +WantedBy=multi-user.target
|
|
| 47 | +```
|
|
| 48 | +
|
|
| 49 | +- サービス登録
|
|
| 50 | +```
|
|
| 51 | +# systemctl start gollum@apache
|
|
| 52 | +# systemctl enable gollum@apache
|
|
| 53 | +# systemctl status gollum@apache
|
|
| 54 | +```
|