From 0ff2e5f69b14dbe5fce7743f032641fe25b03015 Mon Sep 17 00:00:00 2001 From: zenmonkeykstop <kevin.ogorman@gmail.com> Date: Mon, 29 Apr 2013 16:34:02 -0300 Subject: [PATCH] Update 5.0-to-5.1.md Update instructions are mysql-specific. Added a line for Postgres users --- doc/update/5.0-to-5.1.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/update/5.0-to-5.1.md b/doc/update/5.0-to-5.1.md index 708d33ecb6f..b827d868926 100644 --- a/doc/update/5.0-to-5.1.md +++ b/doc/update/5.0-to-5.1.md @@ -29,8 +29,17 @@ sudo -u git -H git checkout v1.3.0 cd /home/git/gitlab sudo rm tmp/sockets/gitlab.socket sudo -u git -H cp config/puma.rb.example config/puma.rb - +``` +If you are using MySQL: +``` sudo -u git -H bundle install --without development test postgres --deployment +``` +If you are using PostgreSQL: +``` +sudo -u git -H bundle install --without development test mysql --deployment +``` + +``` sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production sudo -u git -H bundle exec rake migrate_merge_requests RAILS_ENV=production ``` @@ -44,9 +53,9 @@ sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-rec sudo chmod +x /etc/init.d/gitlab ``` -### 6. Mysql grant privileges +### 6. MySQL grant privileges -Only if you are using mysql: +Only if you are using MySQL: ```bash mysql -u root -p -- GitLab