Load the application before executing the create task
authorrinpatch <rinpatch@sdf.org>
Sat, 22 Jun 2019 01:33:46 +0000 (04:33 +0300)
committerrinpatch <rinpatch@sdf.org>
Sat, 22 Jun 2019 01:33:46 +0000 (04:33 +0300)
lib/pleroma/release_tasks.ex

index d6720cd0580dc5d2bcb1f3ccf6183e0de60b597a..8afabf463f9ebc165a3d06a8b61ec434bf351dd3 100644 (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")