Skip to content
randx edited this page Mar 9, 2012 · 6 revisions

Preparing

  • install git
  • generate ssh key

1. Ruby (skip if exists)

3. Install packages required for gitlabhq

# Ubuntu/Debian
sudo apt-get install python-dev python-pip sendmail redis-server  libicu-dev

# Fedora/CentOS
sudo yum install python-dev python-pip sendmail redis-server  libicu-dev
sudo pip install pygments
sudo gem install bundler

4. Install gitlabhq

git clone git://github.com/gitlabhq/gitlabhq.git
cd gitlabhq

# Rename config files
cp config/gitlab.yml.example config/gitlab.yml

# Select db you want to use
# SQLite
cp config/database.yml.sqlite config/database.yml

# Or 
# Mysql
cp config/database.yml.example config/database.yml

# Install gems
sudo gem install charlock_holmes
bundle install --without development test

# Setup DB
bundle exec rake db:setup RAILS_ENV=production
bundle exec rake db:seed_fu RAILS_ENV=production

Validate your gitlab installation:

bundle exec rake gitlab_status
# OUTPUT EXAMPLE
Starting diagnostic
config/database.yml............exists
config/gitlab.yml............exists
/home/git/repositories/............exists
/home/git/repositories/ is writable?............YES
remote: Counting objects: 603, done.
remote: Compressing objects: 100% (466/466), done.
remote: Total 603 (delta 174), reused 0 (delta 0)
Receiving objects: 100% (603/603), 53.29 KiB, done.
Resolving deltas: 100% (174/174), done.
Can clone gitolite-admin?............YES
UMASK for .gitolite.rc is 0007? ............YES

5. Start server

bundle exec rails s -e production

7. Login with credentials:

User - [email protected]

Password - 5iveL!fe

8. Run Resque

# Manually
bundle exec rake environment resque:work QUEUE=* RAILS_ENV=production

# Gitlab start script
./resque.sh
Clone this wiki locally