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
This commit is contained in:
rinpatch 2019-06-22 09:19:10 +00:00
commit 53c73cd1a3
5 changed files with 20 additions and 1 deletions

View file

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