fix env checker
This commit is contained in:
parent
ba3436fc7c
commit
3188f429bf
2 changed files with 3 additions and 2 deletions
|
|
@ -65,7 +65,8 @@ config :aprs,
|
||||||
aprs_is_port: 14580,
|
aprs_is_port: 14580,
|
||||||
aprs_is_default_filter: System.get_env("APRS_FILTER"),
|
aprs_is_default_filter: System.get_env("APRS_FILTER"),
|
||||||
aprs_is_login_id: System.get_env("APRS_CALLSIGN"),
|
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
|
# Import environment specific config. This must remain at the bottom
|
||||||
# of this file so it overrides the configuration defined above.
|
# of this file so it overrides the configuration defined above.
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ defmodule Aprs.Application do
|
||||||
]
|
]
|
||||||
|
|
||||||
children =
|
children =
|
||||||
if Mix.env() in [:prod, :dev] do
|
if Application.get_env(:aprs, :env) in [:prod, :dev] do
|
||||||
children ++ [Aprs.Is.IsSupervisor]
|
children ++ [Aprs.Is.IsSupervisor]
|
||||||
else
|
else
|
||||||
children
|
children
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue