fix(config): honor DATABASE_HOST in dev, like test #39
No reviewers
Labels
No labels
bug
docs
duplicate
enhancement
help wanted
invalid
nice-to-have
pre-1.0
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/lamplighter!39
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/22-dev-database-host"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #22
config/dev.exsnow reads the DB hostname fromDATABASE_HOST, defaulting tolocalhost, the same asconfig/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.1connects;DATABASE_HOST=db.invalidis picked up.mix test801 passing, format and warnings-as-errors clean.