Files
mozempkandClaude Sonnet 4.6 471b8b71f1 Fix production migration: replace drizzle-kit with drizzle-orm migrator
drizzle-kit is a devDependency and is pruned from the production image.
Replaced npm run db:migrate with a plain Node CJS script that uses
drizzle-orm/better-sqlite3/migrator directly. Auto-detects migrations
path (drizzle/migrations in prod, src/lib/server/db/migrations in dev).
Simplified entrypoint.sh — no more fallback needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 16:10:38 +02:00

9 lines
147 B
Bash

#!/bin/sh
set -e
mkdir -p "$(dirname "${DATABASE_URL:-/app/db/jobs.db}")" "${DOWNLOADS_DIR:-/app/downloads}"
npm run db:migrate
exec node build