summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPierre de Lacroix <pierre@pdelacroix.com>2020-12-09 11:03:21 +0100
committerPierre de Lacroix <pierre@pdelacroix.com>2020-12-09 11:03:21 +0100
commit00c212554e24ea707499859b30f75374d4d3508a (patch)
tree3d8e4a69bf45e52c4fc1b79fa9c64388cbb19aee /config
parentupdate dependencies (diff)
add bridge context
Diffstat (limited to 'config')
-rw-r--r--config/config.exs3
-rw-r--r--config/test.exs12
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,