forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 0
Linux
randx edited this page Mar 9, 2012
·
6 revisions
- install git
- generate ssh key
1. Ruby (skip if exists)
2. Gitolite
# 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
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
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
bundle exec rails s -e production
6. Visit http://localhost:3000
User - admin@local.host
Password - 5iveL!fe
8. Run Resque
# Manually
bundle exec rake environment resque:work QUEUE=* RAILS_ENV=production
# Gitlab start script
./resque.sh