mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 01:25:37 +01:00
skip extra checks
This commit is contained in:
parent
0b073dc451
commit
97b2735364
1 changed files with 18 additions and 10 deletions
|
|
@ -98,12 +98,16 @@ fi
|
||||||
# - build-tracker: bundles tracker script (needed for tracking functionality)
|
# - build-tracker: bundles tracker script (needed for tracking functionality)
|
||||||
# - build-geo: processes geographic data (needed for geo features)
|
# - build-geo: processes geographic data (needed for geo features)
|
||||||
# We skip build-app (production Next.js build) since dev mode compiles on-the-fly
|
# We skip build-app (production Next.js build) since dev mode compiles on-the-fly
|
||||||
log "Validating environment..."
|
if [[ "$USE_PREBAKED_SETUP" -eq 0 ]]; then
|
||||||
if ! pnpm run check-env; then
|
log "Validating environment..."
|
||||||
log_error "Environment validation failed"
|
if ! pnpm run check-env; then
|
||||||
exit 1
|
log_error "Environment validation failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
log "✓ Environment validated"
|
||||||
|
else
|
||||||
|
log "Skipping check-env (prebaked fast path)"
|
||||||
fi
|
fi
|
||||||
log "✓ Environment validated"
|
|
||||||
|
|
||||||
if [[ "$USE_PREBAKED_SETUP" -eq 0 ]]; then
|
if [[ "$USE_PREBAKED_SETUP" -eq 0 ]]; then
|
||||||
log "Building database client..."
|
log "Building database client..."
|
||||||
|
|
@ -116,12 +120,16 @@ else
|
||||||
log "Skipping build-db (prebaked Prisma client detected)"
|
log "Skipping build-db (prebaked Prisma client detected)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log "Checking database and applying migrations..."
|
if [[ "$USE_PREBAKED_SETUP" -eq 0 ]]; then
|
||||||
if ! pnpm run check-db; then
|
log "Checking database and applying migrations..."
|
||||||
log_error "Database check failed"
|
if ! pnpm run check-db; then
|
||||||
exit 1
|
log_error "Database check failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
log "✓ Database migrations applied"
|
||||||
|
else
|
||||||
|
log "Skipping check-db (prebaked fast path)"
|
||||||
fi
|
fi
|
||||||
log "✓ Database migrations applied"
|
|
||||||
|
|
||||||
if [[ "$USE_PREBAKED_SETUP" -eq 0 ]]; then
|
if [[ "$USE_PREBAKED_SETUP" -eq 0 ]]; then
|
||||||
log "Building tracker script..."
|
log "Building tracker script..."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue