|
|
|
|
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
|
|
|
|
import Config |
|
|
|
|
|
|
|
|
|
config :gc_index_relay, :start_repo, true |
|
|
|
|
config :gc_index_relay, :start_repo, System.get_env("REQUIRE_DB") == "true" |
|
|
|
|
|
|
|
|
|
# Configure your database |
|
|
|
|
# |
|
|
|
|
@ -11,6 +11,9 @@ config :gc_index_relay, GcIndexRelay.Repo,
@@ -11,6 +11,9 @@ config :gc_index_relay, GcIndexRelay.Repo,
|
|
|
|
|
username: System.get_env("POSTGRES_USER"), |
|
|
|
|
password: System.get_env("POSTGRES_PASSWORD"), |
|
|
|
|
database: "#{System.get_env("POSTGRES_DB")}#{System.get_env("MIX_TEST_PARTITION")}", |
|
|
|
|
hostname: "localhost", |
|
|
|
|
port: 5432, |
|
|
|
|
show_sensitive_data_on_connection_error: true, |
|
|
|
|
pool: Ecto.Adapters.SQL.Sandbox, |
|
|
|
|
pool_size: System.schedulers_online() * 2 |
|
|
|
|
|
|
|
|
|
|