File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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:
112112docker compose run linuxfr.org bin/rails test -v
113113```
114114
115- Inspect database schema
116- =======================
115+ Inspect the database schema
116+ ===========================
117117
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.
120120
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 ` ).
126124
127125Apply database migrations
128126=========================
You can’t perform that action at this time.
0 commit comments