Merge branch 'runtime-fixes' into 'develop'
Various runtime configuration fixes See merge request pleroma/pleroma!468
This commit is contained in:
commit
a591a044a9
9 changed files with 26 additions and 22 deletions
|
|
@ -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
|
||||
|
|
@ -61,7 +62,7 @@ defmodule Pleroma.Application do
|
|||
worker(Pleroma.Gopher.Server, []),
|
||||
worker(Pleroma.Stats, [])
|
||||
] ++
|
||||
if Mix.env() == :test,
|
||||
if @env == :test,
|
||||
do: [],
|
||||
else:
|
||||
[worker(Pleroma.Web.Streamer, [])] ++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue