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>
9 lines
147 B
Bash
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
|