Mix Tasks: Switch to Application.ensure_all_started instead of
authorrinpatch <rinpatch@sdf.org>
Fri, 7 Jun 2019 09:37:20 +0000 (12:37 +0300)
committerrinpatch <rinpatch@sdf.org>
Fri, 7 Jun 2019 09:37:20 +0000 (12:37 +0300)
commitbc597d888c95ed7d91534cc8083152f3282393e3
tree6b4c854f4da56c4aa15fbb0b5cf6438054b463f8
parent62cdf701f47352004c293c3ca049d232b3d16af7
Mix Tasks: Switch to Application.ensure_all_started instead of
Mix.Task.run and ensure serve_endpoints is set to false

In release environments there is no Mix.Task.run and serve_endpoints
must be set to true for the endpoints to start, so we need to ensure it
is set to false before starting Pleroma for executing a mix task.
lib/mix/tasks/pleroma/common.ex