&tag(GitLab/Mavericksにインストール);
*目次 [#yba39be5]
#contents
*関連ページ [#x8316038]
*参考情報 [#a97284b7]
-[[GitLab.org / GitLab Community Edition | GitLab:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md]]…公式
-[[CiTroNaK/Installation-guide-for-GitLab-on-OS-X:https://github.com/CiTroNaK/Installation-guide-for-GitLab-on-OS-X]]
-[[GITLAB 6 のインストールについてまとめてみました。: お仕事日記 - なんちゃってプログラマーのメモ -:http://prometa.seesaa.net/article/376155883.html]]
-[[Install GitLab 5.3 on Mac OS X server 10.8.4 - Make Better Things:http://www.makebetterthings.com/git/install-gitlab-5-3-on-mac-os-x-server-10-8-4/]]
-[[CiTroNaK/Installation-guide-for-GitLab-on-OS-X:https://github.com/CiTroNaK/Installation-guide-for-GitLab-on-OS-X]]

*MacPortsを使ってインストール [#z3f0699a]

**コマンドラインツールのインストール [#ydc6e972]
-xcode-selectでコマンドラインツールのインストールをリクエストする
 xcode-select --install 

** 事前準備[#r4f7e666]
*** icu [#pc4ea64b]
 sudo port install icu 
*** git [#w7c78259]
 sudo port instlal git-core 
*** logrotate [#n58bb935]
 sudo port install logrotate 
#pre{{
To use logrotate:

  * If /opt/local/etc/logrotate.conf does not exist copy the example into place.

    $ sudo cp /opt/local/share/logrotate/logrotate.conf.example /opt/local/etc/logrotate.conf

  * With the startupitem variant (+startupitem) you can activate a scheduled log
    rotation with this command.

    $ sudo port load logrotate

  * To create your own startup item with non-default intervals, build logrotate
    without the startupitem variant (-startupitem), copy the example into place
    and edit to your liking, then load with launchctl when finished.

    $ sudo cp /opt/local/share/logrotate/org.macports.logrotate.plist.example
/Library/LaunchDaemons/org.macports.logrotate.plist

    $ sudo launchctl load -w /Library/LaunchDaemons/org.macports.logrotate.plist
}}
*** redis [#n1731c2c]
 sudo port install redis 
#pre{{
If you prefer to start a redis server manually, rather than using 'port load', then use this
command:

    redis-server /opt/local/etc/redis.conf
}}
*** libxml2 [#bdbaf4f6]
 sudo port install libxml2-devel

***python2.7のインストール [#f2838a65]
 sudo port install python27
 sudo port select  --set python python27
 sudo port install py27-setuptools

***docutilsをインストール [#q590f7aa]
#pre{{
curl -O http://heanet.dl.sourceforge.net/project/docutils/docutils/0.11/docutils-0.11.tar.gz
gunzip -c docutils-0.11.tar.gz | tar xopf -
cd docutils-0.11
sudo python setup.py install
}}

**データベースのインストール [#s874a7b2]
-mysqlのインストール
-本体のインストールは割愛。

**データベースのセットアップ [#edfa74a6]
-ユーザーの作成
 CREATE USER 'git'@'localhost' IDENTIFIED BY 'PASSWORD_HERE';
-権限を与える
 GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'git'@'localhost';
-データベースを生成する
 CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
**Ruby [#ec8aa559]
-rbenvでインストールしたものを使う


※)ここまでで挫折


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS