aboutsummaryrefslogtreecommitdiff
path: root/lib/mix/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mix/tasks')
-rw-r--r--lib/mix/tasks/pleroma/config.ex4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mix/tasks/pleroma/config.ex b/lib/mix/tasks/pleroma/config.ex
index cef02b864..257a0dfe5 100644
--- a/lib/mix/tasks/pleroma/config.ex
+++ b/lib/mix/tasks/pleroma/config.ex
@@ -74,7 +74,9 @@ defmodule Mix.Tasks.Pleroma.Config do
defp load_and_create(group) do
group
|> Application.get_all_env()
- |> Enum.reject(fn {k, _v} -> k in [Pleroma.Repo, :env] end)
+ |> Enum.reject(fn {k, _v} ->
+ k in [Pleroma.Repo, :env] or (group == :phoenix and k == :serve_endpoints)
+ end)
|> Enum.each(fn {key, value} ->
key = inspect(key)
{:ok, _} = Config.update_or_create(%{group: inspect(group), key: key, value: value})