Files
numolus/config/database.yml
wkh 59b99e5715 Drop the generated comments from database.yml
Settings come from .env now; the stock Rails hints about roles, sockets and ports no longer describe how this app is configured.
2026-10-24 00:38:01 +02:00

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") %>