✨ feat(config): 修改错误提示信息,更新基础配置文件名称为.env.example
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions

This commit is contained in:
HibiKier
2025-08-01 10:01:34 +08:00
parent 6c136b904d
commit c9456f292d
2 changed files with 30 additions and 8 deletions
@@ -40,7 +40,7 @@ async def _(setting: Setting) -> Result:
return Result.fail("配置已存在,请先删除DB_URL内容和前端密码再进行设置。")
env_file = Path() / ".env.example"
if not env_file.exists():
return Result.fail("配置文件.env.dev不存在。")
return Result.fail("基础配置文件.env.example不存在。")
env_text = env_file.read_text(encoding="utf-8")
to_env_file = Path() / ".env.dev"
if setting.db_url: