From 7d3d3560ad8b68ca8bbe475a816c9bb95f190690 Mon Sep 17 00:00:00 2001 From: 1445043649 <> Date: Mon, 11 May 2026 04:24:32 +0800 Subject: [PATCH] feat(env): activate DATABASE_URL with local-dev default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .env.example DATABASE_URL 行从注释改为活值(指向 docker compose 起的本地 postgres)。同时加 RDS 示例注释作为参考。psycopg2 风格 URL 升级到 postgresql+asyncpg:// 与 SQLAlchemy 异步 dialect 对齐。 Stage 0 PR2 T2.2. Co-Authored-By: Claude Opus 4.7 (1M context) --- .env.example | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index a859ec2a..96a5e08a 100644 --- a/.env.example +++ b/.env.example @@ -38,8 +38,11 @@ INFOQUEST_API_KEY=your-infoquest-api-key # GitHub API Token # GITHUB_TOKEN=your-github-token -# Database (only needed when config.yaml has database.backend: postgres) -# DATABASE_URL=postgresql://deerflow:password@localhost:5432/deerflow +# Database (Stage 0+ default; required when config.yaml has database.backend: postgres) +# Local dev — start with: docker compose -f docker/docker-compose-dev.yaml up -d postgres +DATABASE_URL=postgresql+asyncpg://deerflow:deerflow_dev@localhost:5432/deerflow +# Remote RDS example: +# DATABASE_URL=postgresql+asyncpg://USER:PASSWORD@HOST:5432/DBNAME # # WECOM_BOT_ID=your-wecom-bot-id # WECOM_BOT_SECRET=your-wecom-bot-secret