respect settings from database in mix tasks

This commit is contained in:
Alexander Strizhakov 2020-01-25 10:33:27 +03:00
commit 6252e82f85
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
2 changed files with 3 additions and 0 deletions

View file

@ -18,6 +18,7 @@ defmodule Mix.Tasks.Pleroma.RobotsTxt do
"""
def run(["disallow_all"]) do
Mix.Pleroma.start_pleroma()
static_dir = Pleroma.Config.get([:instance, :static_dir], "instance/static/")
if !File.exists?(static_dir) do