From: charleswrayjr Date: Thu, 4 Sep 2025 09:02:35 +0000 (-0500) Subject: Fixing env variables. X-Git-Url: https://git.phasecustomsoft.com/static/git-logo.png?a=commitdiff_plain;h=e0cda71a4d054b66e11132ec77528d91b397ad14;p=phs-home.git Fixing env variables. --- 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