Skip to content

Commit bb73be7

Browse files
committed
Update README.md
1 parent bdbf258 commit bb73be7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,20 +291,22 @@ Replace the contents of ```./rails/config/database.yml``` with the following:
291291
default: &default
292292
adapter: mysql2
293293
host: database
294-
username: ${DB_USER}
295-
password: ${DB_PASSWORD}
294+
username: {DB_USER}
295+
password: {DB_PASSWORD}
296296
pool: 5
297297
298298
development:
299299
<<: *default
300-
database: ${DB_NAME}
300+
database: {DB_NAME}
301301
302302
303303
test:
304304
<<: *default
305305
database: myapp_test
306306
```
307307

308+
then ```docker container restart rails```
309+
308310
[https://guides.rubyonrails.org/active_record_multiple_databases.html#setting-up-your-application](https://guides.rubyonrails.org/active_record_multiple_databases.html#setting-up-your-application)
309311

310312
[https://mariadb.com/kb/en/configuring-mariadb-with-option-files/](https://mariadb.com/kb/en/configuring-mariadb-with-option-files/)
@@ -317,6 +319,8 @@ add the configuration in the relevant ```./rails/config/environments/*.rb``` fil
317319

318320
```config.cache_store = :redis_cache_store, { url: 'redis' }```
319321

322+
then ```docker container restart rails```
323+
320324
[https://guides.rubyonrails.org/caching_with_rails.html#activesupport-cache-rediscachestore](https://guides.rubyonrails.org/caching_with_rails.html#activesupport-cache-rediscachestore)
321325

322326
### phpMyAdmin

0 commit comments

Comments
 (0)