Various runtime configuration fixes

This commit is contained in:
href 2018-11-16 21:35:08 +01:00
commit bcecdc3ab1
No known key found for this signature in database
GPG key ID: EE8296C1A152C325
9 changed files with 26 additions and 22 deletions

View file

@ -3,6 +3,7 @@ defmodule Pleroma.Application do
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@env Mix.env()
def start(_type, _args) do
import Supervisor.Spec
import Cachex.Spec
@ -60,7 +61,7 @@ defmodule Pleroma.Application do
worker(Pleroma.Stats, []),
worker(Pleroma.Gopher.Server, [])
] ++
if Mix.env() == :test,
if @env == :test,
do: [],
else:
[worker(Pleroma.Web.Streamer, [])] ++