feat(update-backend): streamline dependency management and migration process
All checks were successful
Deploy to production / deploy (push) Successful in 1m14s

- 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.
This commit is contained in:
Torsten Schulz (local)
2026-04-17 11:42:41 +02:00
parent 7b907ea683
commit 1e9e247dec

View File

@@ -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