From ccfd523404c675ae501855cdbdec9b9d15f27be8 Mon Sep 17 00:00:00 2001 From: Keenan Thompson Date: Fri, 1 Dec 2023 21:52:50 -0500 Subject: [PATCH] Re-add conditional seeding --- deploy.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy.sh b/deploy.sh index 17b56c1..2a377e0 100755 --- a/deploy.sh +++ b/deploy.sh @@ -18,12 +18,12 @@ echo "Updated fetch-seed-data digest: $FETCH_SEED_DATA_DIGEST_UPDATED" echo "Running migrations..." docker compose up migrate -# if [ "$FETCH_SEED_DATA_DIGEST_CURRENT" == "$FETCH_SEED_DATA_DIGEST_UPDATED" ]; then - # echo "Skipping seed, no new seed data available" -# else - # echo "Running seed with new seed data..." +if [ "$FETCH_SEED_DATA_DIGEST_CURRENT" == "$FETCH_SEED_DATA_DIGEST_UPDATED" ]; then + echo "Skipping seed, no new seed data available" +else + echo "Running seed with new seed data..." docker compose up seed -# fi +fi echo "Stopping containers..." docker compose stop