Skip to content

Commit

Permalink
build.sh dev build support added fro login.
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolicvs committed Aug 20, 2020
1 parent 2424a89 commit 5e72dd7
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ if [ "$MODE" == "prod" -a -z "$DOMAIN" ]; then
echo "INFO: no domain defined. Using $DOMAIN"
fi

if [ "$MODE" == "dev" -a -z "$DOMAIN" ]; then
DOMAIN="localhost"
echo "INFO: no domain defined. Using $DOMAIN"
fi

if [ "$MODE" == "prod" -a -z "$LOGINSERVER" ]; then
LOGINSERVER="147.100.20.44"
echo "INFO: no ip address defined. Using $LOGINSERVER"
Expand Down Expand Up @@ -134,10 +139,18 @@ export IN_SYLVA_SEARCH_PORT=$(grep IN_SYLVA_SEARCH_PORT ipconfig.txt| awk '{prin
export IN_SYLVA_SEARCH_HOST=$(grep IN_SYLVA_SEARCH_HOST ipconfig.txt| awk '{print $2}')
export IN_SYLVA_SEARCH_PORT=$(grep IN_SYLVA_LOGIN_PORT ipconfig.txt| awk '{print $2}')
export IN_SYLVA_SEARCH_HOST=$(grep IN_SYLVA_LOGIN_HOST ipconfig.txt| awk '{print $2}')
export IN_SYLVA_KEYCLOAK_HOST_FOR_LOGIN="${DOMAIN}search/keycloak"
export IN_SYLVA_PORTAL_HOST_FOR_LOGIN="${DOMAIN}portal"
export IN_SYLVA_SEARCH_HOST_FOR_LOGIN="${DOMAIN}search"
export IN_SYLVA_GATEKEEPER_HOST_FOR_LOGIN="${DOMAIN}portal/gatekeeper"

if [ "$MODE" == "dev" ]; then
export IN_SYLVA_KEYCLOAK_HOST_FOR_LOGIN="${DOMAIN}:7000/keycloak"
export IN_SYLVA_PORTAL_HOST_FOR_LOGIN="${DOMAIN}:3000"
export IN_SYLVA_SEARCH_HOST_FOR_LOGIN="${DOMAIN}:3001"
export IN_SYLVA_GATEKEEPER_HOST_FOR_LOGIN="${DOMAIN}:3000/gatekeeper"
else
export IN_SYLVA_KEYCLOAK_HOST_FOR_LOGIN="${DOMAIN}search/keycloak"
export IN_SYLVA_PORTAL_HOST_FOR_LOGIN="${DOMAIN}portal"
export IN_SYLVA_SEARCH_HOST_FOR_LOGIN="${DOMAIN}search"
export IN_SYLVA_GATEKEEPER_HOST_FOR_LOGIN="${DOMAIN}portal/gatekeeper"
fi

echo $IN_SYLVA_KEYCLOAK_HOST_FOR_LOGIN
echo $IN_SYLVA_PORTAL_HOST_FOR_LOGIN
Expand Down

0 comments on commit 5e72dd7

Please sign in to comment.