Skip to content

Commit fe811a6

Browse files
committed
Fix formatting of command lines in Docker.md
These were using "inline code" syntax rather than code block. Code blocks look better and make the lines easier to cut and paste when editing the file.
1 parent 3ac001b commit fe811a6

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

Docker.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ docker-compose run linuxfr.org bin/rails db:setup
2222
Finally, the environment is ready and you can open [http://dlfp.lo](http://dlfp.lo)
2323
in your favorite browser.
2424

25-
Note: to be able to access this URL, you'll need to add the line
26-
`127.0.0.1 dlfp.lo image.dlfp.lo` to the `/etc/hosts` file of your
27-
machine.
25+
Note: to be able to access this URL, you'll need to add the following line
26+
into the `/etc/hosts` file of your machine:
27+
28+
```
29+
127.0.0.1 dlfp.lo image.dlfp.lo
30+
```
2831

2932
Personalize configuration
3033
=========================
@@ -58,7 +61,9 @@ will directly detect changes and apply them on next page reload.
5861
Furthermore, if you need to access the Rails console, you need a second
5962
terminal and run:
6063

61-
`docker-compose run linuxfr.org bin/rails console`
64+
```
65+
docker-compose run linuxfr.org bin/rails console
66+
```
6267

6368
Note: currently, we didn't configure rails to show directly the
6469
`webconsole` in your browser. That's just because of time needed to
@@ -76,15 +81,19 @@ To get help about writing tests, see the
7681

7782
To run tests with Docker environment, you need to use this command:
7883

79-
`docker-compose run linuxfr.org bin/rails test -v`
84+
```
85+
docker-compose run linuxfr.org bin/rails test -v
86+
```
8087

8188
Inspect database schema
8289
=======================
8390

8491
In case you need to inspect the database, you need a second terminal
8592
and run:
8693

87-
`docker-compose run database mysql -hdatabase -ulinuxfr_rails -p linuxfr_rails`
94+
```
95+
docker-compose run database mysql -hdatabase -ulinuxfr_rails -p linuxfr_rails
96+
```
8897

8998
By default, the requested password is the same as the username.
9099

@@ -94,12 +103,16 @@ Apply database migrations
94103
In case you need to apply new database migrations, you need a second
95104
terminal and run:
96105

97-
`docker-compose run linuxfr.org bin/rails db:migrate`
106+
```
107+
docker-compose run linuxfr.org bin/rails db:migrate
108+
```
98109

99110
If you had issue and want to reset all data in your database system,
100111
use:
101112

102-
`docker-compose run linuxfr.org bin/rails db:reset`
113+
```
114+
docker-compose run linuxfr.org bin/rails db:reset
115+
```
103116

104117
Services provided by the docker-compose
105118
=======================================

0 commit comments

Comments
 (0)