From e0cda71a4d054b66e11132ec77528d91b397ad14 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Thu, 4 Sep 2025 04:02:35 -0500 Subject: [PATCH] Fixing env variables. --- .idea/workspace.xml | 15 ++++++++++++--- pre-build.sh | 4 ++-- run-home.sh | 2 ++ 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ded5bea..94de384 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,8 +5,9 @@ + - + diff --git a/pre-build.sh b/pre-build.sh index ee4f121..8ceeff1 100755 --- a/pre-build.sh +++ b/pre-build.sh @@ -20,8 +20,8 @@ if [ $env = "test" ]; then new_it_url="https://api-t.phasecustomsoft.com/it/" fi if [ $env = 'live' ]; then - new_api_url="https://phs-api.phasecustomsoft.com/" - new_it_url="https://phs-api.phasecustomsoft.com/it/" + new_api_url="https://api.phasecustomsoft.com/" + new_it_url="https://api.phasecustomsoft.com/it/" fi echo "New API Url: $new_api_url" diff --git a/run-home.sh b/run-home.sh index 57dafb1..4e4e692 100755 --- a/run-home.sh +++ b/run-home.sh @@ -5,6 +5,8 @@ if [[ ! -z "${PHS_ENV}" ]]; then env=${PHS_ENV} fi +echo $env + if [ "$env" == "TEST" ]; then echo "PHS API Test Stack" npm install --force && /usr/src/app/pre-build.sh test && npm run build && serve -s build -- 2.43.0