fix(docs): fix config toml

This commit is contained in:
2026-02-13 16:06:56 +08:00
parent 7ef61145f6
commit fb30d5da1a
4 changed files with 57 additions and 43 deletions

View File

@@ -400,17 +400,16 @@ cargo run -- -c config/local.toml
**重要**:本项目不支持 .env 文件。开发环境请使用 `config/` 目录下的 toml 配置文件。
复制并修改 MySQL 配置文件:
编辑 MySQL 配置文件:
```bash
# 复制 MySQL 配置模板
cp config/development.mysql.toml config/local.toml
# 编辑开发环境配置文件
nano config/development.toml
# 编辑 config/local.toml修改数据库连接信息
nano config/local.toml
# 设置 database.type = "mysql" 并修改连接信息
# 运行
cargo run -- -c config/local.toml
cargo run
```
或使用环境变量(适用于 Docker/Kubernetes