forked from mirrors/akkoma
replace try/catch with File.Exists? in dev.exs
This commit is contained in:
parent
8c3ff06e35
commit
d9a4aed3b3
1 changed files with 5 additions and 6 deletions
|
@ -49,10 +49,9 @@ config :pleroma, Pleroma.Repo,
|
||||||
hostname: "localhost",
|
hostname: "localhost",
|
||||||
pool_size: 10
|
pool_size: 10
|
||||||
|
|
||||||
try do
|
if File.exists?("./config/dev.secret.exs") do
|
||||||
import_config "dev.secret.exs"
|
import_config "dev.secret.exs"
|
||||||
rescue
|
else
|
||||||
_ ->
|
|
||||||
IO.puts(
|
IO.puts(
|
||||||
"!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs"
|
"!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue