Skip to content

Commit

Permalink
fix(tuto): fix tutorial (#3619)
Browse files Browse the repository at this point in the history
  • Loading branch information
bene2k1 authored Aug 22, 2024
1 parent 1fd7573 commit 9c6f49f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags: GitLab PostgreSQL-database
- instances
- postgresql-and-mysql
dates:
validation: 2024-06-25
validation: 2024-08-22
posted: 2019-11-08
---

Expand Down Expand Up @@ -60,7 +60,7 @@ For those seeking a dependable and high-performance hosting solution, Scaleway C

## Creating a Database

1. [Create a Managed PostgreSQL Database Instance](/managed-databases/postgresql-and-mysql/how-to/create-a-database/) from the Scaleway console. We name our database `gitlab_production`. You are taken to your Database's **Overview** page.
1. [Create a Managed PostgreSQL Database Instance](/managed-databases/postgresql-and-mysql/how-to/create-a-database/) from the Scaleway console. You are taken to your Database's **Overview** page.
2. Click the **Users** tab, then on **Add User**.
3. Enter the username (`gitlab`) and a secure password. In the permission tab, give `ALL` permissions for the user on the `rdb` database.
4. Retrieve the Database Instance **Endpoint** from the **Overview** tab, as it is required for the following steps. The first part, before the colon, is the IP address, and the second part is the port.
Expand All @@ -85,7 +85,7 @@ For the following steps, you should be connected to the Ubuntu Bionic Beaver Ins
gitlab_rails['db_password'] = '<SCALEWAY_DATABASE_PASSWORD>'
```
Replace the following values in the configuration:
- `<SCALEWAY_DATABASE_BASE>`: The name of your Scaleway Database. In our example, this is `rdb`
- `<SCALEWAY_DATABASE_BASE>`: The name of your Scaleway Database. In our example, this is `gitlab_production`
- `<SCALEWAY_DATABASE_IP>`: The IP address of your Scaleway Database Instance
- `<SCALEWAY_DATABASE_PORT>`: The port of your Scaleway Database Instance
- `<SCALEWAY_DATABASE_USERNAME>`: Your Scaleway Database user
Expand All @@ -95,13 +95,13 @@ For the following steps, you should be connected to the Ubuntu Bionic Beaver Ins
```
gitlab-ctl reconfigure
```
5. Seed the GitLab database:
5. Create and seed the GitLab database:
<Message type="important">
This command overwrites your GitLab database. Be careful when using it. You will lose any previous data stored in the database.
</Message>

```
DISABLE_DATABASE_ENVIRONMENT_CHECK=1 gitlab-rake gitlab:setup
gitlab-rake gitlab:setup
```
6. Confirm the database seed by typing `yes` when prompted.

Expand Down

0 comments on commit 9c6f49f

Please sign in to comment.