Benchmark env uses test database so we should be able to use test.secret.exs
authorMark Felder <feld@FreeBSD.org>
Wed, 11 Dec 2019 18:52:57 +0000 (12:52 -0600)
committerMark Felder <feld@FreeBSD.org>
Wed, 11 Dec 2019 18:52:57 +0000 (12:52 -0600)
config/benchmark.exs

index dd99cf5fd81e9ac11de7a7a81d8f07db4b9edb6c..c7ddb80e759657718f5788be8c6d3cf622d85b2f 100644 (file)
@@ -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