fix(backend): 修正默认数据库用户名及调试模式配置
- 将默认数据库用户名从 your_user 改为 postgresql,明确用户名字段说明 - 修改 .env.example 中 DEBUG 默认为 True,方便本地调试 - 更新 deploy-docker-compose.sh 脚本中 DEBUG 默认值为 True,保持一致性 - 保持数据库连接字符串格式正确,确保环境变量配置一致
This commit is contained in:
@@ -3,10 +3,11 @@
|
||||
# 数据库配置 (PostgreSQL)
|
||||
# 生产环境请修改为实际的数据库连接信息
|
||||
# 格式: postgresql+asyncpg://用户名:密码@主机:端口/数据库名
|
||||
DATABASE_URL=postgresql+asyncpg://your_user:your_password@your_host:15432/hospital_performance
|
||||
# 注意: 用户名是 postgresql 不是 postgres
|
||||
DATABASE_URL=postgresql+asyncpg://postgresql:your_password@your_host:15432/hospital_performance
|
||||
|
||||
# JWT 配置
|
||||
SECRET_KEY=your-secret-key-change-in-production-min-32-characters
|
||||
|
||||
# 调试模式
|
||||
DEBUG=False
|
||||
DEBUG=True
|
||||
|
||||
Reference in New Issue
Block a user