revert endpoint position in supervision tree
authorhref <href@random.sh>
Mon, 5 Nov 2018 13:05:04 +0000 (14:05 +0100)
committerhref <href@random.sh>
Mon, 5 Nov 2018 13:05:04 +0000 (14:05 +0100)
lib/pleroma/application.ex

index 607a0144c0546cea281a97e5f7bbbbcd28b0426e..d4bc8f63de26d59813b506e2ae10b45a9292f795 100644 (file)
@@ -14,6 +14,8 @@ defmodule Pleroma.Application do
         # Start the Ecto repository
         supervisor(Pleroma.Repo, []),
         worker(Pleroma.Emoji, []),
+        # Start the endpoint when the application starts
+        supervisor(Pleroma.Web.Endpoint, []),
         # Start your own worker by calling: Pleroma.Worker.start_link(arg1, arg2, arg3)
         # worker(Pleroma.Worker, [arg1, arg2, arg3]),
         worker(
@@ -57,8 +59,6 @@ defmodule Pleroma.Application do
         ),
         worker(Pleroma.Web.Federator, []),
         worker(Pleroma.Stats, []),
-        # Start the endpoint when the application starts
-        supervisor(Pleroma.Web.Endpoint, []),
         worker(Pleroma.Gopher.Server, [])
       ] ++
         if Mix.env() == :test,