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