projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92b4a1a
)
Benchmark env uses test database so we should be able to use test.secret.exs
author
Mark Felder
<feld@FreeBSD.org>
Wed, 11 Dec 2019 18:52:57 +0000
(12:52 -0600)
committer
Mark Felder
<feld@FreeBSD.org>
Wed, 11 Dec 2019 18:52:57 +0000
(12:52 -0600)
config/benchmark.exs
patch
|
blob
|
history
diff --git
a/config/benchmark.exs
b/config/benchmark.exs
index dd99cf5fd81e9ac11de7a7a81d8f07db4b9edb6c..c7ddb80e759657718f5788be8c6d3cf622d85b2f 100644
(file)
--- a/
config/benchmark.exs
+++ b/
config/benchmark.exs
@@
-82,3
+82,11
@@
config :pleroma, :database, rum_enabled: rum_enabled
IO.puts("RUM enabled: #{rum_enabled}")
config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock
+
+if File.exists?("./config/test.secret.exs") do
+ import_config "test.secret.exs"
+else
+ IO.puts(
+ "You may want to create test.secret.exs to declare custom database connection parameters."
+ )
+end