Step 2.5 zwischen pnpm install und build: - git diff vs .last-deployed-sha auf prisma/migrations + schema.prisma - bei Änderungen: pnpm prisma migrate deploy via infisical run wrapper (idempotent, conservative — abort bei Fail vor pm2-restart) - DATABASE_URL Fallback auf NUXT_DATABASE_URL analog start-staging.sh Step 8: persistiert HEAD-SHA in .last-deployed-sha .gitignore: .last-deployed-sha (server-only artifact) Edge cases: - First-deploy: .last-deployed-sha fehlt → run_migration=true (sicher dank Idempotenz) - Infisical-Login-Fail: abort vor pm2-restart - Migration-Fail: exit 1, alter Code läuft auf alter DB sauber Old-trucko-Pattern (deploy.sh:58-65) macht migrate deploy unconditional; rebreak-Variante macht es conditional → spart Infisical+DB-Roundtrip wenn keine Migration-Files berührt wurden.
39 lines
637 B
Plaintext
39 lines
637 B
Plaintext
node_modules
|
|
.output
|
|
.output-staging
|
|
.nitro
|
|
.nuxt
|
|
.pnpm-store
|
|
|
|
# RN / Expo
|
|
apps/rebreak-native/ios/Pods
|
|
apps/rebreak-native/ios/build
|
|
apps/rebreak-native/ios/DerivedData
|
|
apps/rebreak-native/android/build
|
|
apps/rebreak-native/android/app/build
|
|
apps/rebreak-native/android/.gradle
|
|
apps/rebreak-native/.expo
|
|
|
|
# Build artefacts
|
|
*.log
|
|
*.tsbuildinfo
|
|
backend/server/generated
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Local env
|
|
.env
|
|
.env.local
|
|
*.local
|
|
|
|
# Claude Code agent state (lokale Definitionen, nicht versioniert)
|
|
.claude/
|
|
|
|
# xgit binary (generated)
|
|
xgit
|
|
|
|
# Server-only deploy state (NICHT committen — wird vom deploy.sh gepflegt)
|
|
.last-deployed-sha
|