Settings come from .env now; the stock Rails hints about roles, sockets and ports no longer describe how this app is configured.
24 lines
761 B
YAML
24 lines
761 B
YAML
default: &default
|
|
adapter: postgresql
|
|
encoding: unicode
|
|
max_connections: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
|
# Connection details come from the environment, usually a .env file in
|
|
# the project directory (see .env.example). Unset = local socket, own user.
|
|
host: <%= ENV["NUMOLUS_DATABASE_HOST"] %>
|
|
port: <%= ENV["NUMOLUS_DATABASE_PORT"] %>
|
|
username: <%= ENV["NUMOLUS_DATABASE_USER"] %>
|
|
password: <%= ENV["NUMOLUS_DATABASE_PASSWORD"] %>
|
|
|
|
development:
|
|
<<: *default
|
|
database: <%= ENV.fetch("NUMOLUS_DATABASE_NAME", "numolus") %>
|
|
|
|
test:
|
|
<<: *default
|
|
database: numolus_test
|
|
|
|
production:
|
|
<<: *default
|
|
database: <%= ENV.fetch("NUMOLUS_DATABASE_NAME", "numolus") %>
|
|
username: <%= ENV.fetch("NUMOLUS_DATABASE_USER", "numolus") %>
|