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 @@ -85,17 +85,15 @@ To run tests with Docker environment, you need to use this command:
85
85
docker-compose run linuxfr.org bin/rails test -v
86
86
```
87
87
88
- Inspect database schema
89
- =======================
88
+ Inspect the database schema
89
+ ===========================
90
90
91
- In case you need to inspect the database, you need a second terminal
92
- and run:
91
+ In case you need to inspect the database, the port ` 3306 ` of your machine is
92
+ by default bound to the port ` 3306 ` of the database container.
93
93
94
- ```
95
- docker-compose run database mysql -hdatabase -ulinuxfr_rails -p linuxfr_rails
96
- ```
97
-
98
- By default, the requested password is the same as the username.
94
+ Thus you can connect to the linuxfr database with hostname ` localhost ` and the
95
+ username, password and database name defined in the ` deployment/default.env `
96
+ configuration file (all three last are by default ` linuxfr_rails ` ).
99
97
100
98
Apply database migrations
101
99
=========================
You can’t perform that action at this time.
0 commit comments