把项目启动时使用的端口配置到根目录 config.yaml。
config.yaml
start-server.bat
start-web.bat
start-all.bat
不可并行;服务端和前端脚本共享同一配置契约,需一次完成并联合验证。
scripts/
server/config
web
docs/
config.example.yaml
ports.server
ports.web
GOAUTO_SERVER_PORT
更新 docs/04-local-development-and-verification.md、docs/09-delivery-issues.md、config.example.yaml。
docs/04-local-development-and-verification.md
docs/09-delivery-issues.md
实现提交:cde2a84(feat: configure startup ports from local config (#30))
cde2a84
feat: configure startup ports from local config (#30)
实现内容:
scripts/start-web.ps1
strictPort
验证:
go test ./...
pnpm lint
pnpm build:prod
start-server.bat -ValidateConfigOnly
start-web.bat -ValidateConfigOnly
http://127.0.0.1:18080
工单保持打开,等待用户验收。
用户于 2026-08-28 明确确认本工单验收通过。按项目流程记录验收结论并关闭工单;本次仅更新工单状态,无新增长期文档事实,不重复同步 Wiki。
No dependencies set.
The note is not visible to the blocked user.
原始需求摘要
把项目启动时使用的端口配置到根目录
config.yaml。目标
start-server.bat、start-web.bat、start-all.bat启动链路读取同一配置。非目标
前置依赖
config.yaml启动链路可用。是否可并行
不可并行;服务端和前端脚本共享同一配置契约,需一次完成并联合验证。
子项目影响
scripts/、启动 BATserver/config运行时端口覆盖web开发启动环境docs/本地开发说明与交付索引方案
config.yaml/config.example.yaml增加ports.server与ports.web,默认分别为 8000、9527。GOAUTO_SERVER_PORT;服务端配置加载后应用该覆盖。验收标准
config.yaml后,后端监听ports.server,前端监听ports.web。验证
风险
文档影响
更新
docs/04-local-development-and-verification.md、docs/09-delivery-issues.md、config.example.yaml。实施回写
实现提交:
cde2a84(feat: configure startup ports from local config (#30))实现内容:
config.yaml与config.example.yaml增加ports.server、ports.web,本机默认值为 8000/9527。GOAUTO_SERVER_PORT覆盖 go-admin 监听端口。scripts/start-web.ps1;start-web.bat保持双击入口并改为读取同一配置,显式固定 Vite host、端口和strictPort。ports.server。验证:
go test ./...:通过。pnpm lint:0 errors(仓库既有 30 warnings)。pnpm build:prod:通过(仓库既有 CSS/包体积警告)。start-server.bat -ValidateConfigOnly、start-web.bat -ValidateConfigOnly:默认配置通过。http://127.0.0.1:18080。工单保持打开,等待用户验收。
用户于 2026-08-28 明确确认本工单验收通过。按项目流程记录验收结论并关闭工单;本次仅更新工单状态,无新增长期文档事实,不重复同步 Wiki。