From b2f93520919f7b5780fe6b59d493a9e655900975 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 7 Jul 2025 13:02:49 -0500 Subject: [PATCH] parser hash fix --- config/runtime.exs | 3 ++- lib/aprsme/dependency_info.ex | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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()