修改 wiki
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
schema_version: 1
|
||||
module_path: configuration_system
|
||||
title: 基于环境变量与 Docker Compose 的分层配置体系
|
||||
scope: []
|
||||
source_files:
|
||||
- .env.example
|
||||
- backend/src/config/loadEnv.js
|
||||
- backend/src/config/env.js
|
||||
- backend/src/config/database.js
|
||||
- backend/src/config/redis.js
|
||||
- docker-compose.yml
|
||||
- frontend/vite.config.js
|
||||
depends_on: []
|
||||
related_to: []
|
||||
+16
@@ -1,3 +1,19 @@
|
||||
---
|
||||
kind: configuration_system
|
||||
name: 基于环境变量与 Docker Compose 的分层配置体系
|
||||
category: configuration_system
|
||||
scope:
|
||||
- '**'
|
||||
source_files:
|
||||
- .env.example
|
||||
- backend/src/config/loadEnv.js
|
||||
- backend/src/config/env.js
|
||||
- backend/src/config/database.js
|
||||
- backend/src/config/redis.js
|
||||
- docker-compose.yml
|
||||
- frontend/vite.config.js
|
||||
---
|
||||
|
||||
## 1. 核心系统与工具
|
||||
该项目采用 **环境变量(Environment Variables)** 作为唯一的配置来源,结合 **`dotenv`** 库进行本地开发时的文件加载,并通过 **Docker Compose** 在部署时注入环境变量。这种模式遵循了 [12-Factor App](https://12factor.net/zh-cn/config) 的配置原则,实现了配置与代码的分离。
|
||||
|
||||
Reference in New Issue
Block a user