fix(config): honor DATABASE_HOST in dev, like test #39

Manually merged
jfro merged 1 commit from fix/22-dev-database-host into main 2026-11-01 21:12:15 +00:00
Owner

Closes #22

config/dev.exs now reads the DB hostname from DATABASE_HOST, defaulting to localhost, the same as config/test.exs. Handy when Postgres runs in another container (e.g. DATABASE_HOST=db mix phx.server).

Checked: unset → localhost; DATABASE_HOST=127.0.0.1 connects; DATABASE_HOST=db.invalid is picked up. mix test 801 passing, format and warnings-as-errors clean.

Closes #22 `config/dev.exs` now reads the DB hostname from `DATABASE_HOST`, defaulting to `localhost`, the same as `config/test.exs`. Handy when Postgres runs in another container (e.g. `DATABASE_HOST=db mix phx.server`). Checked: unset → `localhost`; `DATABASE_HOST=127.0.0.1` connects; `DATABASE_HOST=db.invalid` is picked up. `mix test` 801 passing, format and warnings-as-errors clean.
fix(config): honor DATABASE_HOST in dev, like test
All checks were successful
CI / test (pull_request) Successful in 28s
9472b86ea0
Closes #22
jfro manually merged commit d8a762352d into main 2026-11-01 21:12:15 +00:00
Sign in to join this conversation.
No description provided.