File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -112,17 +112,15 @@ To run tests with containers, you need to use this command:
112
112
docker compose run linuxfr.org bin/rails test -v
113
113
```
114
114
115
- Inspect database schema
116
- =======================
115
+ Inspect the database schema
116
+ ===========================
117
117
118
- In case you need to inspect the database, you need a second terminal
119
- and run:
118
+ In case you need to inspect the database, the port ` 3306 ` of your machine is
119
+ by default bound to the port ` 3306 ` of the database container.
120
120
121
- ```
122
- docker compose run database mysql -hdatabase -ulinuxfr_rails -p linuxfr_rails
123
- ```
124
-
125
- By default, the requested password is the same as the username.
121
+ Thus you can connect to the linuxfr database with hostname ` localhost ` and the
122
+ username, password and database name defined in the ` deployment/default.env `
123
+ configuration file (all three last are by default ` linuxfr_rails ` ).
126
124
127
125
Apply database migrations
128
126
=========================
You can’t perform that action at this time.
0 commit comments