projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11a1241
)
Make it possible to use custom database connection parameters
author
Mark Felder
<feld@feld.me>
Fri, 4 May 2018 21:00:18 +0000
(21:00 +0000)
committer
Mark Felder
<feld@feld.me>
Fri, 4 May 2018 21:00:18 +0000
(21:00 +0000)
config/test.exs
patch
|
blob
|
history
diff --git
a/config/test.exs
b/config/test.exs
index e0461e93d092c9cfe392778ef8812a3d058ed410..e13696d5c2848167113a94275d1ec1a559bdb8f3 100644
(file)
--- a/
config/test.exs
+++ b/
config/test.exs
@@
-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