forked from phoenix/litellm-mirror
(fix) explicitly run prisma generate
This commit is contained in:
parent
99b2a1bc8a
commit
a2681e353f
1 changed files with 1 additions and 0 deletions
|
@ -211,6 +211,7 @@ def prisma_setup(database_url: Optional[str]):
|
|||
import os
|
||||
print("LiteLLM: DATABASE_URL Set in config, trying to 'pip install prisma'")
|
||||
os.environ["DATABASE_URL"] = database_url
|
||||
subprocess.run(['prisma', 'generate'])
|
||||
subprocess.run(['prisma', 'db', 'push', '--accept-data-loss']) # this looks like a weird edge case when prisma just wont start on render. we need to have the --accept-data-loss
|
||||
# Now you can import the Prisma Client
|
||||
from prisma import Client
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue