Skip to content

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

chore: rename db migration disablement environment variable (#2502)

Max Deichmann26d615842c6a
diff --git a/.env.prod.example b/.env.prod.example
index 0a95f0f7c8..81d9b983f0 100644
--- a/.env.prod.example
+++ b/.env.prod.example
@@ -9,6 +9,8 @@
DATABASE_URL="postgresql://postgres:postgres@db:5432/postgres"
# DIRECT_URL="postgresql://postgres:postgres@db:5432/postgres"
# SHADOW_DATABASE_URL=
+# optional, set to true to disable automated database migrations on Docker start
+# LANGFUSE_AUTO_POSTGRES_MIGRATION_DISABLED=
# Next Auth
# NEXTAUTH_URL does not need to be set when deploying on Vercel
diff --git a/web/entrypoint.sh b/web/entrypoint.sh
index 8d64be98fd..999fb084b4 100644
--- a/web/entrypoint.sh
+++ b/web/entrypoint.sh
@@ -20,7 +20,7 @@ if [ -z "$DIRECT_URL" ]; then
fi
# Always execute the scripts, except when disabled.
-if [ "$LANFUSE_WEB_MIGRATION_DISABLED" != "true" ]; then
+if [ "$LANGFUSE_AUTO_POSTGRES_MIGRATION_DISABLED" != "true" ]; then
prisma db execute --url "$DIRECT_URL" --file "./packages/shared/scripts/cleanup.sql"
# Apply migrations