ci(deploy): add migration control and deployment improvements
- Add SKIP_MIGRATION environment variable to control automatic Prisma migrations in backend - Update Dockerfile to conditionally run migrations based on SKIP_MIGRATION flag - Enhance deploy.sh with: - Better error handling using set -euo pipefail - New --skip-migration flag to bypass automatic migration startup - Improved documentation and help text - New helper functions for waiting on services and database - Better status reporting for migration results - Update compose.yml to include SKIP_MIGRATION environment variable
This commit is contained in:
@@ -23,6 +23,7 @@ services:
|
||||
IMPORTER_SERVICE_URL: "http://importer-api:3001"
|
||||
RECEIPT_TRACE_DECISIONS: "${RECEIPT_TRACE_DECISIONS:-0}"
|
||||
PRISMA_LOG_QUERIES: "${PRISMA_LOG_QUERIES:-0}"
|
||||
SKIP_MIGRATION: "${SKIP_MIGRATION:-false}"
|
||||
volumes:
|
||||
- recipe_images:/app/recipe-images
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user