chore: best-effort openssl install before start
This commit is contained in:
parent
c36670605b
commit
3e4015cecb
1 changed files with 11 additions and 0 deletions
|
|
@ -15,6 +15,17 @@ echo "[start-web] Using APP_DIR=$(pwd)"
|
||||||
echo "[start-web] NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL:-}"
|
echo "[start-web] NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL:-}"
|
||||||
echo "[start-web] NEXT_PUBLIC_CONVEX_URL=${NEXT_PUBLIC_CONVEX_URL:-}"
|
echo "[start-web] NEXT_PUBLIC_CONVEX_URL=${NEXT_PUBLIC_CONVEX_URL:-}"
|
||||||
|
|
||||||
|
# Ensure openssl is available for Prisma runtime checks (best-effort, idempotent)
|
||||||
|
if ! command -v openssl >/dev/null 2>&1; then
|
||||||
|
if command -v apt-get >/dev/null 2>&1; then
|
||||||
|
echo "[start-web] openssl not found; installing via apt-get (requires root)"
|
||||||
|
apt-get update -y >/dev/null 2>&1 || true
|
||||||
|
apt-get install -y openssl >/dev/null 2>&1 || true
|
||||||
|
else
|
||||||
|
echo "[start-web] openssl not found and apt-get unavailable; continuing" >&2
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Bun keeps its store in node_modules/.bun by default; ensure it exists and is writable
|
# Bun keeps its store in node_modules/.bun by default; ensure it exists and is writable
|
||||||
mkdir -p node_modules/.bun >/dev/null 2>&1 || true
|
mkdir -p node_modules/.bun >/dev/null 2>&1 || true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue