Skip to content
Snippets Groups Projects
Commit a836d7b9 authored by lain's avatar lain
Browse files

Merge branch 'fix/config-replace-try-catch-with-file-exists' into 'develop'

#292 Replace try/rescue with File.Exists? in dev.exs

See merge request !488
parents 8c3ff06e d9a4aed3
Branches
No related tags found
No related merge requests found
......@@ -49,11 +49,10 @@ config :pleroma, Pleroma.Repo,
hostname: "localhost",
pool_size: 10
try do
if File.exists?("./config/dev.secret.exs") do
import_config "dev.secret.exs"
rescue
_ ->
IO.puts(
"!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs"
)
else
IO.puts(
"!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs"
)
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment