From 1cb018d4d503941737cb1c057a3a18018760dd04 Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Tue, 17 Jun 2025 19:58:45 +0800 Subject: [PATCH] "feat: simplify db push script by removing restart loop and directly executing db:push and seed" --- 03_source/cms_backend/scripts/01_db_push.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/03_source/cms_backend/scripts/01_db_push.sh b/03_source/cms_backend/scripts/01_db_push.sh index 317f711..dc76212 100755 --- a/03_source/cms_backend/scripts/01_db_push.sh +++ b/03_source/cms_backend/scripts/01_db_push.sh @@ -4,8 +4,6 @@ yarn --dev clear -while true; do - npx nodemon --ext prisma --exec "yarn db:push && yarn seed" - echo "restarting..." - sleep 1 -done +yarn db:push && yarn seed + +echo "done"