Skip to content

Commit

Permalink
Adding additional print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
VineetBala-AOT authored Jan 24, 2024
1 parent 9b2466a commit db8dd1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion met-api/pre-hook-update-db.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#! /bin/sh
cd /opt/app-root
echo 'starting upgrade'
export FLASK_ENV=testing
python3 manage.py db upgrade
7 changes: 6 additions & 1 deletion met-api/src/met_api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}


Expand Down Expand Up @@ -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', ''),
Expand Down

0 comments on commit db8dd1c

Please sign in to comment.