Skip to content

Commit

Permalink
settings: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Sep 7, 2023
1 parent 4fc00a6 commit fb48e91
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions clevercloud/review_app_after_succes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fb48e91

Please sign in to comment.