Everything should use Mix.Task.Run
authorRin Toshaka <rinpatch@sdf.org>
Wed, 5 Dec 2018 18:05:37 +0000 (19:05 +0100)
committerRin Toshaka <rinpatch@sdf.org>
Wed, 5 Dec 2018 18:05:37 +0000 (19:05 +0100)
lib/mix/tasks/pleroma/user.ex

index 14ba60bf405d8bd3cc9447b09ac57f4804cd4779..e2b9b6236736a15e3c02f9880453da0e946f7992 100644 (file)
@@ -198,7 +198,7 @@ defmodule Mix.Tasks.Pleroma.User do
   end
 
   def run(["set", nickname | rest]) do
-    Application.ensure_all_started(:pleroma)
+    Mix.Task.run("app.start")
 
     {options, [], []} =
       OptionParser.parse(