Skip to content

Commit

Permalink
add dev environment flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mechevarria committed Feb 25, 2021
1 parent 5138b75 commit e63d8bb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rtwp-api/local-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ fi

echo "{\"hana\": $credentials }" >/tmp/default-services.json

status=$(cf app rtwp-keycloak | sed -n 3p)
if [[ $status = "FAILED" ]] && [[ $KEYCLOAK = "true" ]]; then
if [[ -z "${KEYCLOAK_URL}" ]]; then
echo "KEYCLOAK_URL environment variable is not set'"
exit 1
else
export KEYCLOAK_URL=https://$(cf app rtwp-keycloak | awk '{print $2}' | sed -n 5p)/auth
echo $KEYCLOAK_URL
fi

npm run dev

0 comments on commit e63d8bb

Please sign in to comment.