diff options
author | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-12-09 11:03:21 +0100 |
---|---|---|
committer | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-12-09 11:03:21 +0100 |
commit | 00c212554e24ea707499859b30f75374d4d3508a (patch) | |
tree | 3d8e4a69bf45e52c4fc1b79fa9c64388cbb19aee /config | |
parent | update dependencies (diff) |
add bridge context
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 3 | ||||
-rw-r--r-- | config/test.exs | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs index 8d782dc..692048a 100644 --- a/config/config.exs +++ b/config/config.exs @@ -7,6 +7,9 @@ # General application configuration use Mix.Config +config :matrix_app_service, + ecto_repos: [MatrixAppService.Repo] + # Configures the endpoint config :matrix_app_service, MatrixAppServiceWeb.Endpoint, url: [host: "localhost"], diff --git a/config/test.exs b/config/test.exs index ed14857..1402cf0 100644 --- a/config/test.exs +++ b/config/test.exs @@ -1,5 +1,17 @@ use Mix.Config +# Configure your database +# +# The MIX_TEST_PARTITION environment variable can be used +# to provide built-in test partitioning in CI environment. +# Run `mix help test` for more information. +config :matrix_app_service, MatrixAppService.Repo, + username: "postgres", + password: "postgres", + database: "matrix_app_service_test#{System.get_env("MIX_TEST_PARTITION")}", + hostname: "localhost", + pool: Ecto.Adapters.SQL.Sandbox + # We don't run a server during test. If one is required, # you can enable the server option below. config :matrix_app_service, MatrixAppServiceWeb.Endpoint, |