Commit 28566a7a authored by John Noel's avatar John Noel

Update README.md

parent ce77e584
...@@ -75,6 +75,32 @@ docker-compose run web rails new . --force --database=postgresql ...@@ -75,6 +75,32 @@ docker-compose run web rails new . --force --database=postgresql
docker-compose up docker-compose up
``` ```
* Edit ``config/database.yml``
```bash
default: &default
adapter: postgresql
encoding: unicode
host: db
username: <%= ENV['POSTGRES_USER'] %>
password: <%= ENV['POSTGRES_PASSWORD'] %>
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
development:
<<: *default
database: <%= "#{ENV['DATABASE_NAME']}_development" %>
test:
<<: *default
database: <%= "#{ENV['DATABASE_NAME']}_test" %>
production:
<<: *default
database: app_production
username: app
password: <%= ENV['RAILS_DATABASE_PASSWORD'] %>
```
* Create the ``development`` and ``test`` database * Create the ``development`` and ``test`` database
```bash ```bash
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment