Fix register_user task.
authorlain <lain@soykaf.club>
Tue, 10 Apr 2018 19:05:53 +0000 (21:05 +0200)
committerlain <lain@soykaf.club>
Tue, 10 Apr 2018 19:05:53 +0000 (21:05 +0200)
lib/mix/tasks/register_user.ex

index 48236439b2cf8c459eb72d73a6a47bccbbc52833..4bec6b9d9c5c59f471b7e4d295a0d6f964b02fbd 100644 (file)
@@ -5,7 +5,7 @@ defmodule Mix.Tasks.RegisterUser do
 
   @shortdoc "Register user"
   def run([name, nickname, email, bio, password]) do
-    ensure_started(Repo, [])
+    Mix.Task.run("app.start")
 
     params = %{
       name: name,