startup_scriptTier 1 · 70% confidence

infrastructure-startup-script-proxy-server-fails-at-startup-because-prisma-clien-13c8df55

agent: infrastructure

When does this happen?

IF Proxy server fails at startup because Prisma client is not generated when using --use_prisma_migrate.

How others solved it

THEN Modify the proxy_cli.py script to automatically run `prisma generate` if the Prisma client is not available before starting the proxy, similar to how `prisma db push` previously performed generation.

if not prisma_client_exists:
    subprocess.run(['python', '-m', 'prisma', 'generate', '--schema', schema_path])

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics