diff --git a/DEPLOY.en.md b/DEPLOY.en.md index 92f35ee..2304cfd 100644 --- a/DEPLOY.en.md +++ b/DEPLOY.en.md @@ -113,12 +113,8 @@ go build -o ds2api ./cmd/ds2api # Copy env template cp .env.example .env -# Generate single-line Base64 from config.json -DS2API_CONFIG_JSON="$(base64 < config.json | tr -d '\n')" - -# Edit .env and set: +# Edit .env and set at least: # DS2API_ADMIN_KEY=your-admin-key -# DS2API_CONFIG_JSON=${DS2API_CONFIG_JSON} # Start docker-compose up -d diff --git a/DEPLOY.md b/DEPLOY.md index 3e77a0a..93364ef 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -113,12 +113,8 @@ go build -o ds2api ./cmd/ds2api # 复制环境变量模板 cp .env.example .env -# 从 config.json 生成单行 Base64 -DS2API_CONFIG_JSON="$(base64 < config.json | tr -d '\n')" - -# 编辑 .env(请改成你的强密码),设置: +# 编辑 .env(请改成你的强密码),至少设置: # DS2API_ADMIN_KEY=your-admin-key -# DS2API_CONFIG_JSON=${DS2API_CONFIG_JSON} # 启动 docker-compose up -d diff --git a/README.MD b/README.MD index d8c5872..9946515 100644 --- a/README.MD +++ b/README.MD @@ -160,17 +160,13 @@ go run ./cmd/ds2api # 1. 准备环境变量文件 cp .env.example .env -# 2. 从 config.json 生成 DS2API_CONFIG_JSON(单行 Base64) -DS2API_CONFIG_JSON="$(base64 < config.json | tr -d '\n')" - -# 3. 编辑 .env,设置: +# 2. 编辑 .env(至少设置 DS2API_ADMIN_KEY) # DS2API_ADMIN_KEY=请替换为强密码 -# DS2API_CONFIG_JSON=${DS2API_CONFIG_JSON} -# 4. 启动 +# 3. 启动 docker-compose up -d -# 5. 查看日志 +# 4. 查看日志 docker-compose logs -f ``` diff --git a/README.en.md b/README.en.md index 7f0278b..8ab7b32 100644 --- a/README.en.md +++ b/README.en.md @@ -160,17 +160,13 @@ Default URL: `http://localhost:5001` # 1. Prepare env file cp .env.example .env -# 2. Generate DS2API_CONFIG_JSON from config.json (single-line Base64) -DS2API_CONFIG_JSON="$(base64 < config.json | tr -d '\n')" - -# 3. Edit .env and set: +# 2. Edit .env (at least set DS2API_ADMIN_KEY) # DS2API_ADMIN_KEY=replace-with-a-strong-secret -# DS2API_CONFIG_JSON=${DS2API_CONFIG_JSON} -# 4. Start +# 3. Start docker-compose up -d -# 5. View logs +# 4. View logs docker-compose logs -f ``` diff --git a/TESTING.md b/TESTING.md index 8d1a309..2b2698a 100644 --- a/TESTING.md +++ b/TESTING.md @@ -51,7 +51,7 @@ DS2API 提供两个层级的测试: 1. **Preflight 检查**: - `go test ./... -count=1`(单元测试) - `./tests/scripts/check-node-split-syntax.sh`(Node 拆分模块语法门禁) - - `node --test`(如仓库存在 Node 单测文件时执行;当前默认以 Go 测试 + Node 语法门禁为主) + - `node --test tests/node/stream-tool-sieve.test.js tests/node/chat-stream.test.js tests/node/js_compat_test.js` - `npm run build --prefix webui`(WebUI 构建检查) 2. **隔离启动**:复制 `config.json` 到临时目录,启动独立服务进程