fix env checker

This commit is contained in:
Graham McIntire 2023-01-29 13:04:29 -06:00
parent ba3436fc7c
commit 3188f429bf
2 changed files with 3 additions and 2 deletions

View file

@ -65,7 +65,8 @@ config :aprs,
aprs_is_port: 14580,
aprs_is_default_filter: System.get_env("APRS_FILTER"),
aprs_is_login_id: System.get_env("APRS_CALLSIGN"),
aprs_is_password: System.get_env("APRS_PASSCODE")
aprs_is_password: System.get_env("APRS_PASSCODE"),
env: config_env()
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.

View file

@ -28,7 +28,7 @@ defmodule Aprs.Application do
]
children =
if Mix.env() in [:prod, :dev] do
if Application.get_env(:aprs, :env) in [:prod, :dev] do
children ++ [Aprs.Is.IsSupervisor]
else
children