mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +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:
|
try:
|
||||||
if not os.path.exists("prisma"):
|
if not os.path.exists("prisma"):
|
||||||
subprocess.run(["prisma", "generate"])
|
subprocess.run(["prisma", "generate"])
|
||||||
subprocess.run(
|
|
||||||
["prisma", "db", "push", "--accept-data-loss"]
|
subprocess.run(
|
||||||
) # this looks like a weird edge case when prisma just wont start on render. we need to have the --accept-data-loss
|
["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:
|
finally:
|
||||||
os.chdir(original_dir)
|
os.chdir(original_dir)
|
||||||
# Now you can import the Prisma Client
|
# Now you can import the Prisma Client
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue