@@ -22,9 +22,12 @@ docker-compose run linuxfr.org bin/rails db:setup
22
22
Finally, the environment is ready and you can open [ http://dlfp.lo ] ( http://dlfp.lo )
23
23
in your favorite browser.
24
24
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
+ ```
28
31
29
32
Personalize configuration
30
33
=========================
@@ -58,7 +61,9 @@ will directly detect changes and apply them on next page reload.
58
61
Furthermore, if you need to access the Rails console, you need a second
59
62
terminal and run:
60
63
61
- ` docker-compose run linuxfr.org bin/rails console `
64
+ ```
65
+ docker-compose run linuxfr.org bin/rails console
66
+ ```
62
67
63
68
Note: currently, we didn't configure rails to show directly the
64
69
` webconsole ` in your browser. That's just because of time needed to
@@ -76,15 +81,19 @@ To get help about writing tests, see the
76
81
77
82
To run tests with Docker environment, you need to use this command:
78
83
79
- ` docker-compose run linuxfr.org bin/rails test -v `
84
+ ```
85
+ docker-compose run linuxfr.org bin/rails test -v
86
+ ```
80
87
81
88
Inspect database schema
82
89
=======================
83
90
84
91
In case you need to inspect the database, you need a second terminal
85
92
and run:
86
93
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
+ ```
88
97
89
98
By default, the requested password is the same as the username.
90
99
@@ -94,12 +103,16 @@ Apply database migrations
94
103
In case you need to apply new database migrations, you need a second
95
104
terminal and run:
96
105
97
- ` docker-compose run linuxfr.org bin/rails db:migrate `
106
+ ```
107
+ docker-compose run linuxfr.org bin/rails db:migrate
108
+ ```
98
109
99
110
If you had issue and want to reset all data in your database system,
100
111
use:
101
112
102
- ` docker-compose run linuxfr.org bin/rails db:reset `
113
+ ```
114
+ docker-compose run linuxfr.org bin/rails db:reset
115
+ ```
103
116
104
117
Services provided by the docker-compose
105
118
=======================================
0 commit comments