Merge branch '24908-install-instructions-seem-to-have-two-database-steps-out-of-order' into 'master'
Fix documentation to create the `pg_trm` extension before creating the DB Closes #24908 See merge request !7735
This commit is contained in:
commit
d5740d3bb6
1 changed files with 6 additions and 6 deletions
|
@ -176,18 +176,18 @@ We recommend using a PostgreSQL database. For MySQL check the
|
||||||
sudo -u postgres psql -d template1 -c "CREATE USER git CREATEDB;"
|
sudo -u postgres psql -d template1 -c "CREATE USER git CREATEDB;"
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Create the GitLab production database and grant all privileges on database:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo -u postgres psql -d template1 -c "CREATE DATABASE gitlabhq_production OWNER git;"
|
|
||||||
```
|
|
||||||
|
|
||||||
1. Create the `pg_trgm` extension (required for GitLab 8.6+):
|
1. Create the `pg_trgm` extension (required for GitLab 8.6+):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo -u postgres psql -d template1 -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
sudo -u postgres psql -d template1 -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
1. Create the GitLab production database and grant all privileges on database:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo -u postgres psql -d template1 -c "CREATE DATABASE gitlabhq_production OWNER git;"
|
||||||
|
```
|
||||||
|
|
||||||
1. Try connecting to the new database with the new user:
|
1. Try connecting to the new database with the new user:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
Loading…
Reference in a new issue