summaryrefslogtreecommitdiff
path: root/lib/mix/pleroma.ex
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-06-22 09:19:10 +0000
committerrinpatch <rinpatch@sdf.org>2019-06-22 09:19:10 +0000
commit53c73cd1a3387dbdde283f563c5be4e45ffab05c (patch)
tree22a9454a1a113ed0a9dda05d4fc807e985e84151 /lib/mix/pleroma.ex
parent4b791afd607723ee02c82718c04299dc9986831a (diff)
parent19f16e829d2f5f800483aeb1f48aefca2504d1e6 (diff)
downloadpleroma-53c73cd1a3387dbdde283f563c5be4e45ffab05c.tar.gz
pleroma-53c73cd1a3387dbdde283f563c5be4e45ffab05c.zip
Merge branch 'fix/ecto-tasks-release' into 'develop'
Ecto tasks: Resolve relative path using the application directory instead of cwd and load the application before doing anything See merge request pleroma/pleroma!1322
Diffstat (limited to 'lib/mix/pleroma.ex')
-rw-r--r--lib/mix/pleroma.ex4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mix/pleroma.ex b/lib/mix/pleroma.ex
index 548c8a0a4..1b758ea33 100644
--- a/lib/mix/pleroma.ex
+++ b/lib/mix/pleroma.ex
@@ -9,6 +9,10 @@ defmodule Mix.Pleroma do
{:ok, _} = Application.ensure_all_started(:pleroma)
end
+ def load_pleroma do
+ Application.load(:pleroma)
+ end
+
def get_option(options, opt, prompt, defval \\ nil, defname \\ nil) do
Keyword.get(options, opt) || shell_prompt(prompt, defval, defname)
end