Skip to content

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

feat(docker): optionally set DIRECT_URL (#739)

Marc Klingen43dd396a648a
diff --git a/entrypoint.sh b/entrypoint.sh
index 2d7745803d..609ff9f073 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -13,8 +13,10 @@ if [ -z "$DATABASE_URL" ]; then
fi
fi
-# Set DIRECT_URL to the value of DATABASE_URL, required for migrations
-export DIRECT_URL=$DATABASE_URL
+# Set DIRECT_URL to the value of DATABASE_URL if it is not set, required for migrations
+if [ -z "$DIRECT_URL" ]; then
+ export DIRECT_URL=$DATABASE_URL
+fi
# Apply migrations
prisma migrate deploy