From e5de1b8753eb1129b1339d6140daa329e63b7ac5 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Thu, 19 Feb 2026 17:06:00 +0700 Subject: [PATCH] Disable auto-seeding on startup and fix manual seed script --- Frontend/.env.example | 1 - Frontend/prisma/seed.mjs | 2 -- Frontend/scripts/compose-dev.sh | 4 ---- docker-compose.yml | 1 - 4 files changed, 8 deletions(-) diff --git a/Frontend/.env.example b/Frontend/.env.example index 9a4d102..c046228 100644 --- a/Frontend/.env.example +++ b/Frontend/.env.example @@ -24,7 +24,6 @@ OPENAI_MODEL="gpt-4o-mini" CF_AGENT_MODE="langgraph" CF_WHISPER_MODEL="Xenova/whisper-small" CF_WHISPER_LANGUAGE="ru" -CF_RUN_SEED_ON_START="0" TELEGRAM_BOT_TOKEN="" TELEGRAM_WEBHOOK_SECRET="" diff --git a/Frontend/prisma/seed.mjs b/Frontend/prisma/seed.mjs index 9432055..9256ab5 100644 --- a/Frontend/prisma/seed.mjs +++ b/Frontend/prisma/seed.mjs @@ -230,7 +230,6 @@ async function main() { startsAt: firstStart, endsAt: plusMinutes(firstStart, 30), note: "Подтвердить рамки интеграции, текущий стек и метрики успеха пилота.", - status: "done", }, { teamId: team.id, @@ -239,7 +238,6 @@ async function main() { startsAt: secondStart, endsAt: plusMinutes(secondStart, 45), note: "Проверить маппинг API, границы ETL и ограничения для AI-ассистента.", - status: "done", }, ]; }), diff --git a/Frontend/scripts/compose-dev.sh b/Frontend/scripts/compose-dev.sh index 181c78a..60360f6 100755 --- a/Frontend/scripts/compose-dev.sh +++ b/Frontend/scripts/compose-dev.sh @@ -37,8 +37,4 @@ done npx prisma db push -if [ "${CF_RUN_SEED_ON_START:-0}" = "1" ]; then - node prisma/seed.mjs -fi - exec npm run dev -- --host 0.0.0.0 --port 3000 diff --git a/docker-compose.yml b/docker-compose.yml index 259e47f..b2690aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,6 @@ services: OPENROUTER_REASONING_ENABLED: "${OPENROUTER_REASONING_ENABLED:-1}" CF_WHISPER_MODEL: "${CF_WHISPER_MODEL:-Xenova/whisper-small}" CF_WHISPER_LANGUAGE: "${CF_WHISPER_LANGUAGE:-ru}" - CF_RUN_SEED_ON_START: "${CF_RUN_SEED_ON_START:-0}" LANGFUSE_ENABLED: "${LANGFUSE_ENABLED:-true}" LANGFUSE_BASE_URL: "${LANGFUSE_BASE_URL:-http://langfuse-web:3000}" LANGFUSE_PUBLIC_KEY: "${LANGFUSE_PUBLIC_KEY:-pk-lf-local}"