load default config in mix tasks

This commit is contained in:
Alexander Strizhakov 2020-07-09 11:17:43 +03:00
parent b28cc15459
commit 4cbafcef0c
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381

View File

@ -7,6 +7,7 @@ defmodule Mix.Pleroma do
@cachex_childs ["object", "user"]
@doc "Common functions to be reused in mix tasks"
def start_pleroma do
Pleroma.Config.Holder.save_default()
Application.put_env(:phoenix, :serve_endpoints, false, persistent: true)
if Pleroma.Config.get(:env) != :test do