forked from AkkomaGang/akkoma
don't restart pleroma in mix tasks
This commit is contained in:
parent
72ad3a66f4
commit
b28cc15459
2 changed files with 7 additions and 3 deletions
|
@ -22,7 +22,11 @@ def start_pleroma do
|
||||||
|
|
||||||
Enum.each(apps, &Application.ensure_all_started/1)
|
Enum.each(apps, &Application.ensure_all_started/1)
|
||||||
|
|
||||||
childs = [Pleroma.Repo, Pleroma.Config.TransferTask, Pleroma.Web.Endpoint]
|
childs = [
|
||||||
|
Pleroma.Repo,
|
||||||
|
{Pleroma.Config.TransferTask, false},
|
||||||
|
Pleroma.Web.Endpoint
|
||||||
|
]
|
||||||
|
|
||||||
cachex_childs = Enum.map(@cachex_childs, &Pleroma.Application.build_cachex(&1, []))
|
cachex_childs = Enum.map(@cachex_childs, &Pleroma.Application.build_cachex(&1, []))
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,8 @@ defmodule Pleroma.Config.TransferTask do
|
||||||
{:pleroma, :gopher, [:enabled]}
|
{:pleroma, :gopher, [:enabled]}
|
||||||
]
|
]
|
||||||
|
|
||||||
def start_link(_) do
|
def start_link(restart_pleroma? \\ true) do
|
||||||
load_and_update_env()
|
load_and_update_env([], restart_pleroma?)
|
||||||
if Config.get(:env) == :test, do: Ecto.Adapters.SQL.Sandbox.checkin(Repo)
|
if Config.get(:env) == :test, do: Ecto.Adapters.SQL.Sandbox.checkin(Repo)
|
||||||
:ignore
|
:ignore
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue