start limiters in mix tasks

This commit is contained in:
Alexander Strizhakov 2020-11-20 11:37:01 +03:00
commit 0a5b22bc3b
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
2 changed files with 2 additions and 0 deletions

View file

@ -19,6 +19,7 @@ defmodule Mix.Pleroma do
def start_pleroma do
Pleroma.Config.Holder.save_default()
Pleroma.Config.Oban.warn()
Pleroma.Application.limiters_setup()
Application.put_env(:phoenix, :serve_endpoints, false, persistent: true)
if Pleroma.Config.get(:env) != :test do