From 1a0be4b794e387431a21abaf72955b4a95794f1d Mon Sep 17 00:00:00 2001 From: Felix Faerber Date: Wed, 27 May 2026 12:33:38 +0300 Subject: [PATCH] stub xdg-open so prisma studio doesn't crash on browser launch Prisma 7 dropped --browser none and hardcodes spawn('xdg-open'). Alpine doesn't ship xdg-utils, so the spawn ENOENT bubbles to process exit and the studio task fails after the server has already bound to :5555. Co-Authored-By: Claude Opus 4.7 (1M context) --- hostinger/prod-stack.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hostinger/prod-stack.yaml b/hostinger/prod-stack.yaml index a327ff4..900f7f6 100644 --- a/hostinger/prod-stack.yaml +++ b/hostinger/prod-stack.yaml @@ -87,7 +87,10 @@ services: prisma: image: ghcr.io/token-for-token/hosted-gateway:main - command: ["sh", "-c", "bunx prisma migrate deploy && bunx prisma studio --port 5555"] + # ln -sf /bin/true /usr/local/bin/xdg-open → Prisma 7's studio CLI hard- + # codes a browser-launch via xdg-open and bubbles the spawn-ENOENT to + # process exit. There's no --browser flag any more, so stub it out. + command: ["sh", "-c", "ln -sf /bin/true /usr/local/bin/xdg-open && bunx prisma migrate deploy && bunx prisma studio --port 5555"] env_file: - .env environment: