From db8dd1cdfdfd2f9fb34dd5e9bfcf874a19c07aa6 Mon Sep 17 00:00:00 2001 From: VineetBala-AOT <90332175+VineetBala-AOT@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:22:18 -0800 Subject: [PATCH] Adding additional print statements --- met-api/pre-hook-update-db.sh | 1 - met-api/src/met_api/config.py | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/met-api/pre-hook-update-db.sh b/met-api/pre-hook-update-db.sh index aadf1f21f..173954983 100755 --- a/met-api/pre-hook-update-db.sh +++ b/met-api/pre-hook-update-db.sh @@ -1,5 +1,4 @@ #! /bin/sh cd /opt/app-root echo 'starting upgrade' -export FLASK_ENV=testing python3 manage.py db upgrade \ No newline at end of file diff --git a/met-api/src/met_api/config.py b/met-api/src/met_api/config.py index 5f388aa9c..7006127f0 100644 --- a/met-api/src/met_api/config.py +++ b/met-api/src/met_api/config.py @@ -34,6 +34,9 @@ # appending any variables we find to the current environment. load_dotenv(find_dotenv()) # remove all env variables with no text (allows for entries to be unset easily) +print('***********************************************************KEYCLOAK_BASE_URL1', os.getenv('KEYCLOAK_BASE_URL')) +print('***********************************************************KEYCLOAK_REALMNAME2', os.getenv('KEYCLOAK_REALMNAME')) +print('***********************************************************JWT_OIDC_WELL_KNOWN_CONFIG3', os.getenv('JWT_OIDC_WELL_KNOWN_CONFIG')) os.environ = {k: v for k, v in os.environ.items() if v} @@ -174,7 +177,9 @@ def SQLALCHEMY_DATABASE_URI(self) -> str: } print('***********************************************************KEYCLOAK_BASE_URL', os.getenv('KEYCLOAK_BASE_URL')) print('***********************************************************KEYCLOAK_REALMNAME', os.getenv('KEYCLOAK_REALMNAME')) - print('***********************************************************JWT_OIDC_WELL_KNOWN_CONFIG', os.getenv('JWT_OIDC_WELL_KNOWN_CONFIG')) + print('***********************************************************MET_ADMIN_CLIENT_ID', os.getenv('MET_ADMIN_CLIENT_ID')) + print('***********************************************************MET_ADMIN_CLIENT_ID', os.getenv('MET_ADMIN_CLIENT_ID')) + print('***********************************************************DATABASE_USERNAME', os.getenv('DATABASE_USERNAME')) # Keycloak configuration KEYCLOAK_CONFIG = KC = { 'BASE_URL': os.getenv('KEYCLOAK_BASE_URL', ''),