Release Tasks: Ensure the application is loaded before getting the
authorrinpatch <rinpatch@sdf.org>
Wed, 19 Jun 2019 23:20:20 +0000 (02:20 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 19 Jun 2019 23:21:48 +0000 (02:21 +0300)
modules

Needed for non-rpc tasks to work

lib/pleroma/release_tasks.ex

index eb6eff61c2e3d1bce090b505d33c6ab0d6651e61..d6720cd0580dc5d2bcb1f3ccf6183e0de60b597a 100644 (file)
@@ -17,6 +17,7 @@ defmodule Pleroma.ReleaseTasks do
   end
 
   defp mix_task(task, args) do
+    Application.load(:pleroma)
     {:ok, modules} = :application.get_key(:pleroma, :modules)
 
     module =