|
|
|
@ -8,11 +8,11 @@ config :gc_index_relay, :start_repo, true |
|
|
|
# to provide built-in test partitioning in CI environment. |
|
|
|
# to provide built-in test partitioning in CI environment. |
|
|
|
# Run `mix help test` for more information. |
|
|
|
# Run `mix help test` for more information. |
|
|
|
config :gc_index_relay, GcIndexRelay.Repo, |
|
|
|
config :gc_index_relay, GcIndexRelay.Repo, |
|
|
|
port: 5432, |
|
|
|
username: System.get_env("POSTGRES_USER"), |
|
|
|
username: "postgres", |
|
|
|
password: System.get_env("POSTGRES_PASSWORD"), |
|
|
|
password: "postgres", |
|
|
|
hostname: System.get_env("POSTGRES_HOST"), |
|
|
|
hostname: "localhost", |
|
|
|
port: System.get_env("POSTGRES_PORT"), |
|
|
|
database: "gc_index_relay_test#{System.get_env("MIX_TEST_PARTITION")}", |
|
|
|
database: "#{System.get_env("POSTGRES_DB")}#{System.get_env("MIX_TEST_PARTITION")}", |
|
|
|
pool: Ecto.Adapters.SQL.Sandbox, |
|
|
|
pool: Ecto.Adapters.SQL.Sandbox, |
|
|
|
pool_size: System.schedulers_online() * 2 |
|
|
|
pool_size: System.schedulers_online() * 2 |
|
|
|
|
|
|
|
|
|
|
|
|