projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c3ff06
)
replace try/catch with File.Exists? in dev.exs
author
rinpatch
<rinpatch@sdf.org>
Sat, 1 Dec 2018 14:38:45 +0000
(17:38 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Sat, 1 Dec 2018 14:38:45 +0000
(17:38 +0300)
config/dev.exs
patch
|
blob
|
history
diff --git
a/config/dev.exs
b/config/dev.exs
index 7b06ad67ece9541d79fd20c28f8c2e68cf5f984a..166be721aade416f6d73c07d334c2ed517541319 100644
(file)
--- a/
config/dev.exs
+++ b/
config/dev.exs
@@
-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