Make test.exs read config in the same way as dev.exs
This way, if your test.secret.exs has an error, you'll actually see it.
This commit is contained in:
parent
8ba7a151ad
commit
b729402774
@ -82,10 +82,9 @@
|
|||||||
|
|
||||||
config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock
|
config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock
|
||||||
|
|
||||||
try do
|
if File.exists?("./config/test.secret.exs") do
|
||||||
import_config "test.secret.exs"
|
import_config "test.secret.exs"
|
||||||
rescue
|
else
|
||||||
_ ->
|
|
||||||
IO.puts(
|
IO.puts(
|
||||||
"You may want to create test.secret.exs to declare custom database connection parameters."
|
"You may want to create test.secret.exs to declare custom database connection parameters."
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user