From 1e9e247dec021a80462b9de93c78720e3edecfeb Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Fri, 17 Apr 2026 11:42:41 +0200 Subject: [PATCH] feat(update-backend): streamline dependency management and migration process - Updated the npm install command to remove the production flag, allowing for the installation of all dependencies. - Added a step to prune development dependencies after running database migrations, optimizing the deployment environment. --- update-backend.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/update-backend.sh b/update-backend.sh index b603998..6fb9f11 100755 --- a/update-backend.sh +++ b/update-backend.sh @@ -22,7 +22,7 @@ rm -rf logs/ rm -rf tmp/ echo "Installing dependencies..." -npm ci --production +npm ci echo "Übernehme .env-Dateien vom Live-System..." @@ -65,6 +65,9 @@ export STAGE="$STAGE" echo "Führe Migrationen aus..." npm run db:migrate +echo "Entferne Dev-Dependencies nach Migrationen..." +npm prune --omit=dev + if [ "${RUN_LEGACY_SYNC_DB_ON_DEPLOY:-0}" = "1" ]; then echo "RUN_LEGACY_SYNC_DB_ON_DEPLOY=1 gesetzt -> führe zusätzlich legacy sync-db aus..." npm run sync-db