Critical fix for production deployment on Proxmox/Docker. Problem: - Runtime error: Prisma Client could not locate Query Engine for "debian-openssl-1.1.x" - Wrong binary target generated (Windows dll instead of Linux .so.node) - Wrong OpenSSL version (3.0.x instead of 1.1.x for Debian 11) Root cause: - Schema.prisma didn't specify binaryTargets - Prisma auto-detected Windows during local development - Debian 11 (bullseye) uses OpenSSL 1.1.x, not 3.0.x Solution: 1. Add binaryTargets to schema.prisma: - "debian-openssl-1.1.x" for Docker/Proxmox - "native" for local development 2. Fix Prisma folder permissions in Docker: - RUN chown -R nextjs:nodejs /app/prisma - Ensures Query Engine binary is readable by app user Changes: - prisma/schema.prisma: Add binaryTargets = ["debian-openssl-1.1.x", "native"] - keep-notes/Dockerfile: Add chown for /app/prisma folder Verification: ✓ libquery_engine-debian-openssl-1.1.x.so.node exists ✓ Permissions: nextjs:nodejs (readable) ✓ Prisma Client loads successfully in container Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
62 lines
1.7 KiB
JSON
62 lines
1.7 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(dir:*)",
|
|
"Bash(findstr:*)",
|
|
"Bash(test:*)",
|
|
"Bash(tree:*)",
|
|
"Bash(find:*)",
|
|
"Bash(npm install:*)",
|
|
"Bash(npx prisma generate:*)",
|
|
"Bash(npx prisma migrate dev:*)",
|
|
"Bash(npx prisma db push:*)",
|
|
"Bash(npm run build:*)",
|
|
"Bash(grep:*)",
|
|
"Bash(netstat:*)",
|
|
"Skill(bmad:bmm:agents:pm)",
|
|
"WebSearch",
|
|
"Bash(powershell:*)",
|
|
"Bash(npm run dev:*)",
|
|
"mcp__zread__read_file",
|
|
"mcp__zread__search_doc",
|
|
"Bash(npx prisma studio:*)",
|
|
"Bash(timeout:*)",
|
|
"mcp__web-reader__webReader",
|
|
"Bash(taskkill:*)",
|
|
"Bash(sqlite3:*)",
|
|
"Bash(node scripts/check-labels.js:*)",
|
|
"Bash(curl:*)",
|
|
"Bash(python:*)",
|
|
"Bash(npm test:*)",
|
|
"Skill(bmad:bmm:agents:ux-designer)",
|
|
"Skill(bmad:bmm:workflows:create-prd)",
|
|
"Bash(ls:*)",
|
|
"Bash(cat:*)",
|
|
"Bash(ping:*)",
|
|
"Bash(tasklist:*)",
|
|
"Bash(npm uninstall:*)",
|
|
"Bash(node:*)",
|
|
"Bash(npx tsx:*)",
|
|
"Bash(npx tsc:*)",
|
|
"mcp__zai-mcp-server__analyze_image",
|
|
"Skill(bmad:bmm:agents:architect)",
|
|
"Bash(git log:*)",
|
|
"Skill(bmad:bmm:workflows:workflow-status)",
|
|
"Skill(bmad:bmm:workflows:sprint-planning)",
|
|
"Bash(done)",
|
|
"Bash(for:*)",
|
|
"Bash(do echo:*)",
|
|
"Bash(chmod:*)",
|
|
"Bash(git add:*)",
|
|
"Bash(git commit:*)",
|
|
"Bash(git push:*)",
|
|
"Bash(docker compose:*)",
|
|
"mcp__context7__resolve-library-id",
|
|
"mcp__web-search-prime__webSearchPrime",
|
|
"mcp__context7__query-docs",
|
|
"Bash(docker logs:*)",
|
|
"Bash(docker run:*)"
|
|
]
|
|
}
|
|
}
|