Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Aolin <[email protected]>
  • Loading branch information
2 people authored and ti-chi-bot committed Feb 7, 2024
1 parent 01035a9 commit 2c32745
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions develop/dev-guide-sample-application-ruby-mysql2.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
cp .env.example .env
```

6. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `<>` with connection parameters in the connection dialog:
6. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `{}` with connection parameters in the connection dialog:

```dotenv
DATABASE_HOST={host}
DATABASE_PORT=4000
DATABASE_USER={user}
DATABASE_PASSWORD={password}
DATABASE_NAME=test
DATABASE_ENABLE_SSL=true
DATABASE_HOST={host}
DATABASE_PORT=4000
DATABASE_USER={user}
DATABASE_PASSWORD={password}
DATABASE_NAME=test
DATABASE_ENABLE_SSL=true
```

> **Note**
Expand All @@ -133,7 +133,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
cp .env.example .env
```

5. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `<>` with connection parameters in the connection dialog:
5. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `{}` with connection parameters in the connection dialog:

```dotenv
DATABASE_HOST={host}
Expand Down Expand Up @@ -162,7 +162,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
cp .env.example .env
```

2. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `<>` with your own TiDB connection information:
2. Edit the `.env` file, set up the environment variables as follows, and replace the corresponding placeholders `{}` with your own TiDB connection information:

```dotenv
DATABASE_HOST={host}
Expand Down
2 changes: 1 addition & 1 deletion develop/dev-guide-sample-application-ruby-rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Connect to your TiDB cluster depending on the TiDB deployment option you've sele
cp .env.example .env
```

2. Edit the `.env` file, set up the `DATABASE_URL` environment variable as follows, and replace the `<user>`, `<password>`, `<host>`, `<port>`, and `<database>` with your own TiDB connection information:
2. Edit the `.env` file, set up the `DATABASE_URL` environment variable as follows, and replace the `{user}`, `{password}`, `{host}`, `{port}`, and `{database}` with your own TiDB connection information:

```dotenv
DATABASE_URL=mysql2://{user}:{password}@{host}:{port}/{database}
Expand Down

0 comments on commit 2c32745

Please sign in to comment.