Read variable for testing db.
authorRoger Braun <rbraun@Bobble.local>
Thu, 2 Nov 2017 16:45:33 +0000 (17:45 +0100)
committerRoger Braun <rbraun@Bobble.local>
Thu, 2 Nov 2017 16:45:33 +0000 (17:45 +0100)
config/test.exs

index 04136e1f23d1447bf94d278484c48c3110cfb74b..26b5410fe8b594e97e018a49d7fe95d4f2c16df5 100644 (file)
@@ -18,7 +18,7 @@ config :pleroma, Pleroma.Repo,
   username: "postgres",
   password: "postgres",
   database: "pleroma_test",
-  hostname: "localhost",
+  hostname: System.get_env("DB_HOST") || "localhost",
   pool: Ecto.Adapters.SQL.Sandbox