First Commit
Deploy App / deploy (push) Failing after 1m1s

This commit is contained in:
Damian Kellenberger
2026-07-08 00:13:32 +02:00
commit 1e8f1772d9
49 changed files with 3821 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
set -e
echo "Waiting for database..."
until node -e "
const { PrismaClient } = require('@prisma/client');
const prisma = new PrismaClient();
prisma.\$connect()
.then(() => { prisma.\$disconnect(); process.exit(0); })
.catch(() => process.exit(1));
" 2>/dev/null; do
sleep 2
done
echo "Running database migrations..."
npx prisma db push --skip-generate
echo "Starting application..."
if [ "$(id -u)" = "0" ]; then
exec su -s /bin/sh nextjs -c 'exec "$@"' sh "$@"
else
exec "$@"
fi