forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 0
From 3.0 to 3.1
randx edited this page Nov 21, 2012
·
26 revisions
sudo service gitlab stop
# Get latest code
git pull origin stable
# Install new charlock_holmes
sudo gem install charlock_holmes --version '0.6.9'
# Install gems
bundle install --without development test postgres
# Migrate db
bundle exec rake db:migrate RAILS_ENV=production
# Rewrite hook
sudo cp ./lib/hooks/post-receive /home/git/.gitolite/hooks/common/post-receive
sudo chown git:git /home/git/.gitolite/hooks/common/post-receive
# make symlink to gitolite hook in every repo like
sudo -u git -H ln -s -f /home/git/.gitolite/hooks/common/post-receive /home/git/repositories/projectname.git/hooks/post-receive
# Check APP Status
bundle exec rake gitlab:app:status RAILS_ENV=production
sudo service gitlab start