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