switch deploy from drizzle-kit migrate to push --force

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 21:12:00 +01:00
parent f22dba6134
commit 4cfff0eaa5

View File

@@ -60,8 +60,8 @@ PORT=$PORT
ENVFILE" ENVFILE"
# ── 6. Run migrations ──────────────────────────────────────────────── # ── 6. Run migrations ────────────────────────────────────────────────
echo "→ running database migrations..." echo "→ pushing database schema..."
ssh "$HOST" "cd ~/$SERVICE_DIR/server && DATABASE_URL=postgresql://localhost:5433/$DB_NAME bun drizzle-kit migrate" ssh "$HOST" "cd ~/$SERVICE_DIR/server && DATABASE_URL=postgresql://localhost:5433/$DB_NAME bun drizzle-kit push --force"
# ── 7. Deploy static client files ──────────────────────────────────── # ── 7. Deploy static client files ────────────────────────────────────
echo "→ deploying client static files..." echo "→ deploying client static files..."