don't fully start pleroma in mix tasks
This commit is contained in:
parent
6335b32aa8
commit
72ad3a66f4
5 changed files with 27 additions and 2 deletions
|
|
@ -162,7 +162,8 @@ defmodule Pleroma.Application do
|
|||
defp seconds_valid_interval,
|
||||
do: :timer.seconds(Config.get!([Pleroma.Captcha, :seconds_valid]))
|
||||
|
||||
defp build_cachex(type, opts),
|
||||
@spec build_cachex(String.t(), keyword()) :: map()
|
||||
def build_cachex(type, opts),
|
||||
do: %{
|
||||
id: String.to_atom("cachex_" <> type),
|
||||
start: {Cachex, :start_link, [String.to_atom(type <> "_cache"), opts]},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue