mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
(fix) run prisma setup - on __init_
This commit is contained in:
parent
9b04b1c9ad
commit
84385ce80e
1 changed files with 4 additions and 3 deletions
|
@ -268,9 +268,10 @@ class PrismaClient:
|
|||
try:
|
||||
if not os.path.exists("prisma"):
|
||||
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
|
||||
|
||||
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
|
||||
finally:
|
||||
os.chdir(original_dir)
|
||||
# Now you can import the Prisma Client
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue