Use full node:22-bookworm image so OpenSSL is available without apt
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "DATABASE_URL host check..."
|
||||
echo "Node: $(node -v)"
|
||||
echo "OpenSSL: $(openssl version 2>/dev/null || echo missing)"
|
||||
echo "Waiting for database & applying migrations..."
|
||||
|
||||
i=0
|
||||
until npx prisma migrate deploy; do
|
||||
i=$((i + 1))
|
||||
if [ "$i" -ge 30 ]; then
|
||||
echo "Database not ready after 30 attempts"
|
||||
echo "Database/migrate failed after 30 attempts"
|
||||
exit 1
|
||||
fi
|
||||
echo "Retry $i..."
|
||||
|
||||
Reference in New Issue
Block a user