Skip to content
Snippets Groups Projects
Commit 0ff2e5f6 authored by zenmonkeykstop's avatar zenmonkeykstop
Browse files

Update 5.0-to-5.1.md

Update instructions are mysql-specific. Added a line for Postgres users
parent 7214a30d
No related branches found
No related tags found
3 merge requests!3804Prepend "sudo -u git -H" to backup bundle exec commands.,!3777Update 5.0-to-5.1.md,!3776Patch 1
Loading
Loading
@@ -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
```
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment