projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Isolate OAuth.Token.CleanWorker
[akkoma]
/
lib
/
pleroma
/
release_tasks.ex
diff --git
a/lib/pleroma/release_tasks.ex
b/lib/pleroma/release_tasks.ex
index eb6eff61c2e3d1bce090b505d33c6ab0d6651e61..8afabf463f9ebc165a3d06a8b61ec434bf351dd3 100644
(file)
--- a/
lib/pleroma/release_tasks.ex
+++ b/
lib/pleroma/release_tasks.ex
@@
-17,6
+17,7
@@
defmodule Pleroma.ReleaseTasks do
end
defp mix_task(task, args) do
end
defp mix_task(task, args) do
+ Application.load(:pleroma)
{:ok, modules} = :application.get_key(:pleroma, :modules)
module =
{:ok, modules} = :application.get_key(:pleroma, :modules)
module =
@@
-43,6
+44,8
@@
defmodule Pleroma.ReleaseTasks do
end
def create 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")
case @repo.__adapter__.storage_up(@repo.config) do
:ok ->
IO.puts("The database for #{inspect(@repo)} has been created")