Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

Fix DIRECT_URL env for migrations

Marc Klingen5efac0810edf
diff --git a/entrypoint.sh b/entrypoint.sh
index afb8cb0625..97c7330daf 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -1,5 +1,13 @@
#!/bin/sh
+# Set DIRECT_URL to the value of DATABASE_URL, required for migrations
+export DIRECT_URL=$DATABASE_URL
+
+# Apply migrations
prisma migrate deploy
+
+# Start background cron job
node cron.js &
+
+# Start server
node server.js