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) <noreply@anthropic.com>
This commit is contained in:
1 parent
7e155240c9
commit
1a0be4b794
1 file changed
+4
-1
@@ -87,7 +87,10 @@ services:
|
|||||||
|
|
||||||
prisma:
|
prisma:
|
||||||
image: ghcr.io/token-for-token/hosted-gateway:main
|
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_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in new issue
Block a user