mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-10 22:01:16 +00:00
fix: switch to local geist fonts and use direct prisma binary in entrypoint
- Replace next/font/google Geist imports with geist npm package to eliminate Google Fonts CDN network dependency during Docker image builds (was causing intermittent build failures → redeployment errors) - Use ./node_modules/.bin/prisma directly in docker-entrypoint.sh instead of npx for both migrate deploy and db seed commands Co-authored-by: xCyanGrizzly <53275238+xCyanGrizzly@users.noreply.github.com>
This commit is contained in:
@@ -10,11 +10,11 @@ if [ "$AUTH_SECRET" = "change-me-to-a-random-secret-in-production" ] || [ -z "$A
|
||||
fi
|
||||
|
||||
echo "Running database migrations..."
|
||||
npx prisma migrate deploy
|
||||
./node_modules/.bin/prisma migrate deploy
|
||||
|
||||
if [ "$SEED_DATABASE" = "true" ]; then
|
||||
echo "Seeding database..."
|
||||
npx prisma db seed || echo "Seeding skipped or already done."
|
||||
./node_modules/.bin/prisma db seed || echo "Seeding skipped or already done."
|
||||
fi
|
||||
|
||||
echo "Starting application..."
|
||||
|
||||
Reference in New Issue
Block a user