From fb48e915250f7f6792889e4f161aed09445433ed Mon Sep 17 00:00:00 2001 From: vincent porte Date: Thu, 7 Sep 2023 15:07:03 +0200 Subject: [PATCH] =?UTF-8?q?settings:=C2=A0fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clevercloud/review_app_after_succes.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/clevercloud/review_app_after_succes.sh b/clevercloud/review_app_after_succes.sh index 134d836ce..94f5522d4 100755 --- a/clevercloud/review_app_after_succes.sh +++ b/clevercloud/review_app_after_succes.sh @@ -12,9 +12,12 @@ if [ "$SKIP_FIXTURES" = true ] ; then fi echo "Loading data" +USE_VENV=1 \ +PGPASSWORD=$POSTGRESQL_ADDON_PASSWORD \ +PGDATABASE=$POSTGRESQL_ADDON_DB \ +PGHOST=$POSTGRESQL_ADDON_HOST \ +PGPORT=$POSTGRESQL_ADDON_PORT \ +PGUSER=$POSTGRESQL_ADDON_USER \ + cd $APP_HOME -if python manage.py loaddata fixtures/validation_fixtures.json; then - echo "Data loaded successfully." -else - echo "Error loading data." -fi +python manage.py loaddata fixtures/validation_fixtures.json