&tag(GitLab/Mavericksにインストール);
xcode-select --install
sudo port install icu
sudo port instlal git-core
sudo port install logrotate
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
sudo port install redis
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
sudo port install libxml2-devel
sudo port install python27 sudo port select --set python python27 sudo port install py27-setuptools
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
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`;