diff --git a/config/runtime.exs b/config/runtime.exs index 0b3f686..53d9c3d 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -79,7 +79,8 @@ if config_env() == :prod do aprs_is_port: 14_580, 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: :prod # ## Configuring the mailer # diff --git a/lib/aprsme/dependency_info.ex b/lib/aprsme/dependency_info.ex index e29e417..80a1a7e 100644 --- a/lib/aprsme/dependency_info.ex +++ b/lib/aprsme/dependency_info.ex @@ -9,7 +9,7 @@ defmodule Aprsme.DependencyInfo do In production: fetches from GitHub API """ def get_aprs_library_sha do - if Mix.env() == :prod do + if Application.get_env(:aprsme, :env, :dev) == :prod do fetch_aprs_sha_from_github() else get_aprs_sha_from_vendor()