forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 0
From 4.0 to 4.1
randx edited this page Jan 29, 2013
·
4 revisions
- Resque replaced with Sidekiq
- New options for configuration file added
- Init.d script should be updated
- requires ruby1.9.3-p327
sudo service gitlab stop
# Get latest code
sudo -u gitlab -H git fetch
sudo -u gitlab -H git checkout 4-1-stable
# Install gems for MySQL
sudo -u gitlab -H bundle install --without development test postgres
# Migrate db
sudo -u gitlab -H bundle exec rake db:migrate RAILS_ENV=production
# backup old one
sudo mv /etc/init.d/gitlab /etc/init.d/gitlab.old
# get new one usign sidekiq
sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/4-1-stable/init.d/gitlab
sudo chmod +x /etc/init.d/gitlab
sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production
sudo service gitlab start
sudo rm /etc/init.d/gitlab.old