projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55742d9
)
Fallback to Config if Mix.Config does not exist, even if Config does not
author
rinpatch
<rinpatch@sdf.org>
Fri, 21 Jun 2019 23:29:49 +0000
(
02:29
+0300)
committer
rinpatch
<rinpatch@sdf.org>
Fri, 21 Jun 2019 23:29:49 +0000
(
02:29
+0300)
exist either
For some weird reason Code.ensure_loaded?(Config) is false on OTP
releases even though `use Config` from config files works just fine.
priv/templates/sample_config.eex
patch
|
blob
|
history
diff --git
a/priv/templates/sample_config.eex
b/priv/templates/sample_config.eex
index 526593d0a87f7049ada1730966febf1a01d8b291..8cadb995e823967e4c6a6e1bf97bca682b7d0db1 100644
(file)
--- a/
priv/templates/sample_config.eex
+++ b/
priv/templates/sample_config.eex
@@
-3,7
+3,7
@@
# NOTE: This file should not be committed to a repo or otherwise made public
# without removing sensitive information.
-<%= if Code.ensure_loaded?(Config) do
+<%= if Code.ensure_loaded?(Config)
or not Code.ensure_loaded?(Mix.Config)
do
"import Config"
else
"use Mix.Config"