feat(config): read database host port from DB_PORT in dev and test
This commit is contained in:
parent
365ff10fd8
commit
0a53e11cc4
2 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ config :mv, Mv.Repo,
|
|||
username: "postgres",
|
||||
password: "postgres",
|
||||
hostname: System.get_env("TEST_POSTGRES_HOST", "localhost"),
|
||||
port: System.get_env("TEST_POSTGRES_PORT", "5000"),
|
||||
port: System.get_env("TEST_POSTGRES_PORT") || System.get_env("DB_PORT") || "5000",
|
||||
database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}",
|
||||
pool: Ecto.Adapters.SQL.Sandbox,
|
||||
pool_size: System.schedulers_online() * 8,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue