fix: serve frontend and configure local web port

This commit is contained in:
2026-09-25 11:55:14 +08:00
parent 1605ae6410
commit 53939e1eb9
4 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -1,6 +1,6 @@
# WiseGrade(智评)部署与使用
WiseGrade 是单机单管理员教师端。Web 服务仅绑定 `127.0.0.1:8080`。学生原件通过只读目录挂载进入容器,不经过浏览器上传。
WiseGrade 是单机单管理员教师端。Web 服务仅绑定 `127.0.0.1`,默认端口为 `8080`,可通过 `.env` 中的 `WISEGRADE_WEB_PORT` 修改。学生原件通过只读目录挂载进入容器,不经过浏览器上传。
## 准备
@@ -37,6 +37,8 @@ curl http://127.0.0.1:8080/api/health
打开 <http://127.0.0.1:8080>。`api` 启动时执行 Alembic 迁移并创建初始课程、目标、指标点和规则。评分任务由 `worker` 容器处理。
如 `8080` 端口已被占用,在 `.env` 中设置 `WISEGRADE_WEB_PORT=18080`(或其他空闲端口),重新运行 `docker compose up -d`,并使用对应端口访问。
## Windows Docker Desktop 启动
1. 安装 Docker Desktop,启用 WSL2 后端并允许访问存放材料的磁盘。