| ... | @@ -43,6 +43,7 @@ Test that the new user can login: |
... | @@ -43,6 +43,7 @@ Test that the new user can login: |
|
|
```
|
|
```
|
|
|
sudo -u git -H psql -d gitlabhq_production
|
|
sudo -u git -H psql -d gitlabhq_production
|
|
|
```
|
|
```
|
|
|
|
### Configure GitLab to use external database
|
|
|
Edit in /etc/gitlab/gitlab.rb file:
|
|
Edit in /etc/gitlab/gitlab.rb file:
|
|
|
```
|
|
```
|
|
|
# Disable the built-in Postgres
|
|
# Disable the built-in Postgres
|
| ... | @@ -56,3 +57,12 @@ gitlab_rails['db_port'] = 5432 |
... | @@ -56,3 +57,12 @@ gitlab_rails['db_port'] = 5432 |
|
|
gitlab_rails['db_username'] = 'git'
|
|
gitlab_rails['db_username'] = 'git'
|
|
|
gitlab_rails['db_password'] = 'somepassword'
|
|
gitlab_rails['db_password'] = 'somepassword'
|
|
|
```
|
|
```
|
|
|
|
Reconfigure GitLab:
|
|
|
|
```
|
|
|
|
sudo gitlab-ctl reconfigure
|
|
|
|
```
|
|
|
|
In the database user run:
|
|
|
|
```
|
|
|
|
gitlab-rake gitlab:setup
|
|
|
|
```
|
|
|
|
|