don't restart pleroma in mix tasks

parent 92be1254
Pipeline #28039 passed with stages
in 17 minutes and 37 seconds
......@@ -22,7 +22,11 @@ def start_pleroma do
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, []))
......
......@@ -31,8 +31,8 @@ defmodule Pleroma.Config.TransferTask do
{:pleroma, :gopher, [:enabled]}
]
def start_link(_) do
load_and_update_env()
def start_link(restart_pleroma? \\ true) do
load_and_update_env([], restart_pleroma?)
if Config.get(:env) == :test, do: Ecto.Adapters.SQL.Sandbox.checkin(Repo)
:ignore
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment