fix entrypoint

This commit is contained in:
Ishaan Jaff 2024-08-26 20:32:23 -07:00
parent a49a7f4458
commit ffb752d878
2 changed files with 5 additions and 2 deletions

View file

@ -51,6 +51,10 @@ while retry_count < max_retries and exit_code != 0:
retry_count += 1
print(f"Attempt {retry_count}...") # noqa
# run prisma generate
result = subprocess.run(["prisma", "generate"], capture_output=True)
exit_code = result.returncode
# Run the Prisma db push command
result = subprocess.run(
["prisma", "db", "push", "--accept-data-loss"], capture_output=True