瀏覽代碼

Merge branch 'fix/mix-tasks-ensure-no-endpoints-are-served' into 'develop'

Mix Tasks: Switch to Application.ensure_all_started instead of Mix.Task.run and ensure serve_endpoints is set to false

See merge request pleroma/pleroma!1255
tags/v1.1.4
kaniini 5 年之前
父節點
當前提交
cb89987ca1
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      lib/mix/tasks/pleroma/common.ex

+ 2
- 1
lib/mix/tasks/pleroma/common.ex 查看文件

@@ -5,7 +5,8 @@
defmodule Mix.Tasks.Pleroma.Common do
@doc "Common functions to be reused in mix tasks"
def start_pleroma do
Mix.Task.run("app.start")
Application.put_env(:phoenix, :serve_endpoints, false, persistent: true)
{:ok, _} = Application.ensure_all_started(:pleroma)
end

def get_option(options, opt, prompt, defval \\ nil, defname \\ nil) do


Loading…
取消
儲存