Files
scaffold/template/backend/.env.example.jinja
T
baozaotumao 39fe248f9f feat: 重组为标准 skill 包结构 + 修复 verify.sh bash 3.2 兼容
- 新增 .claude/skills/new-project/SKILL.md(标准 skill 格式)
- install-skill.sh 安装时组装 SKILL.md + verify.sh,单一源无重复
- verify.sh 改用索引数组替代 declare -A,兼容 macOS bash 3.2
- log_pass/log_skip 显式 return 0,避免 set -e 下非 verbose 误退出
- README 改为 skill 优先;补全 copier.yml/scripts/template 入库
2026-06-01 21:19:45 -07:00

34 lines
810 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Backend 配置模板 —— 复制为 .env 后按需修改
# .env 含真实配置,不提交 git;本文件是提交到 git 的模板
# 运行环境:dev | prod
ENV=dev
# 服务端口
PORT={{ backend_port }}
{%- if include_agent %}
# Agent WebSocket 地址
AGENT_WS_URL=ws://localhost:{{ agent_port }}
{%- endif %}
# 工作目录
WORK_DIR=~/{{ project_slug }}
{%- if database == 'sqlite' %}
# 数据库连接串(SQLite
DATABASE_URL=sqlite+aiosqlite:///~/{{ project_slug }}/{{ project_slug }}.db
{%- elif database == 'postgresql' %}
# 数据库连接串(PostgreSQL
DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/{{ project_slug }}
{%- endif %}
# 日志级别:DEBUG | INFO | WARNING | ERROR
LOG_LEVEL=DEBUG
# Swagger 文档(dev 开,prod 关)
ENABLE_API_DOCS=true