Load the application before executing the create task

This commit is contained in:
rinpatch 2019-06-22 04:33:46 +03:00
parent ebee9f59d8
commit 19f16e829d
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ def rollback(args) do
end end
def create do def create do
Application.load(:pleroma)
case @repo.__adapter__.storage_up(@repo.config) do case @repo.__adapter__.storage_up(@repo.config) do
:ok -> :ok ->
IO.puts("The database for #{inspect(@repo)} has been created") IO.puts("The database for #{inspect(@repo)} has been created")