From 59d3f894f13ad4246b3e261eeb2ef73ea7bf11d3 Mon Sep 17 00:00:00 2001 From: Robert Bartel Date: Fri, 2 Aug 2024 15:09:18 -0400 Subject: [PATCH] Add running of migrations back to GUI entrypoint. Making sure to put it after lines that export the SQL_PASSWORD as needed. --- docker/nwm_gui/app_server/entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/nwm_gui/app_server/entrypoint.sh b/docker/nwm_gui/app_server/entrypoint.sh index a2d8a531c..7a67b3cb5 100755 --- a/docker/nwm_gui/app_server/entrypoint.sh +++ b/docker/nwm_gui/app_server/entrypoint.sh @@ -28,13 +28,13 @@ echo "Starting dmod app" #python manage.py migrate ######### -# Execute the migration scripts on the designated database -#python manage.py migrate - #Extract the DB secrets into correct ENV variables POSTGRES_SECRET_FILE="/run/secrets/${DOCKER_SECRET_POSTGRES_PASS:?}" export SQL_PASSWORD="$(cat ${POSTGRES_SECRET_FILE})" +# Execute the migration scripts on the designated database +python manage.py migrate + # Handle for debugging when appropriate if [ "$(echo "${PYCHARM_REMOTE_DEBUG_ACTIVE:-false}" | tr '[:upper:]' '[:lower:]' | tr -d '[:space:]')" == "true" ]; then # Set the timeout to longer when debugging