Make it possible to use custom database connection parameters
authorMark Felder <feld@feld.me>
Fri, 4 May 2018 21:00:18 +0000 (21:00 +0000)
committerMark Felder <feld@feld.me>
Fri, 4 May 2018 21:00:18 +0000 (21:00 +0000)
config/test.exs

index e0461e93d092c9cfe392778ef8812a3d058ed410..e13696d5c2848167113a94275d1ec1a559bdb8f3 100644 (file)
@@ -26,3 +26,12 @@ config :comeonin, :pbkdf2_rounds, 1
 config :pleroma, :websub, Pleroma.Web.WebsubMock
 config :pleroma, :ostatus, Pleroma.Web.OStatusMock
 config :pleroma, :httpoison, HTTPoisonMock
+
+try do
+  import_config "test.secret.exs"
+rescue
+  _ ->
+    IO.puts(
+      "You may want to create test.secret.exs to declare custom database connection paramenters."
+    )
+end