summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-06-21 22:43:39 +0000
committerrinpatch <rinpatch@sdf.org>2019-06-21 22:43:39 +0000
commit89fa14f5583b1465db1bad8c1fae2f7c436bf933 (patch)
tree3ba92c4ed57e9fc35c7b6c7bf9fc85b2d7302caf
parente3534f5b3c68f9bf6a10c5fc10aa637ef66ab82e (diff)
parent960d6b54e8575b828d34fcf0b69e634dc4d33fe0 (diff)
downloadpleroma-89fa14f5583b1465db1bad8c1fae2f7c436bf933.tar.gz
pleroma-89fa14f5583b1465db1bad8c1fae2f7c436bf933.zip
Merge branch 'fix/use-config-when-possible' into 'develop'
use Config in generated config when available See merge request pleroma/pleroma!1319
-rw-r--r--priv/templates/sample_config.eex6
1 files changed, 5 insertions, 1 deletions
diff --git a/priv/templates/sample_config.eex b/priv/templates/sample_config.eex
index 8b45acb05..526593d0a 100644
--- a/priv/templates/sample_config.eex
+++ b/priv/templates/sample_config.eex
@@ -3,7 +3,11 @@
# NOTE: This file should not be committed to a repo or otherwise made public
# without removing sensitive information.
-use Mix.Config
+<%= if Code.ensure_loaded?(Config) do
+ "import Config"
+else
+ "use Mix.Config"
+end %>
config :pleroma, Pleroma.Web.Endpoint,
url: [host: "<%= domain %>", scheme: "https", port: <%= port %>],