From 66a6db193b64034ee6e9f3c1ee18a47a2a40130e Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Fri, 30 Jan 2026 04:57:51 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20fallback=20to=20localhost?= =?UTF-8?q?=20for=20undefined=20deployment=20targets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/websites/pokedex.online/deploy.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/code/websites/pokedex.online/deploy.sh b/code/websites/pokedex.online/deploy.sh index a23a064..cec0e5a 100755 --- a/code/websites/pokedex.online/deploy.sh +++ b/code/websites/pokedex.online/deploy.sh @@ -326,10 +326,12 @@ verify_deployment() { # Determine host based on target if [ "$TARGET" = "internal" ]; then HOST="10.0.0.81" - else + elif [ "$TARGET" = "external" ]; then HOST="home.gregrjacobs.com" + else + HOST="localhost" fi - + log_info "Checking frontend health..." sleep 3 # Give containers time to start @@ -358,8 +360,10 @@ print_summary() { # Determine host based on target if [ "$TARGET" = "internal" ]; then HOST="10.0.0.81" - else + elif [ "$TARGET" = "external" ]; then HOST="home.gregrjacobs.com" + else + HOST="localhost" fi echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"