fix(docs): fix config toml
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user