From 5e72dd796ebb2099777893410c388aff0f8720d2 Mon Sep 17 00:00:00 2001 From: Aytac Ozkan Date: Thu, 20 Aug 2020 16:17:28 +0200 Subject: [PATCH] build.sh dev build support added fro login. --- build.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index bc786d1..fe0b9e6 100755 --- a/build.sh +++ b/build.sh @@ -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" @@ -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