hr-system/docs/02-develop/dev-notes-T02b.md

23 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 开发记录 T02b脚手架部署参数修正端口 9280
> 迭代:人事系统-初始迭代批次1-T02b角色agent.develop
> 前置T01/T02 已完成49 表 models JSON + hr-web 脚手架 + V001__init_hrs.sql 已在测试库执行)
## 1. 变更内容
| 文件 | 变更 |
|---|---|
| `conf/config.json` | 新增/修正:`server.port` 9182→**9280**`databases.hrs` 按测试环境127.0.0.1:3306 本机 MariaDB库 hrs用户 test/test123utf8mb4pool 10Redis 会话配置确认enabledsession_max_time=28800/session_issue_time=86400沿用基线口径processors .tmpl/.ui/.dspy 保留 |
| `deploy/hr-web.service` | systemd unit描述与启动后端口探活同步为 9280User=hrstestWorkingDirectory=/opt/hrs依赖 mariadb/redisRestart=always |
| `deploy/nginx-hrstest.conf` | 反代样例server_name hrstest.opencomputing.cn → proxy_pass 127.0.0.1:9280含 WebSocket 头、client_max_body_size 50m、certbot --nginx 自动改写备忘(勿手工预写证书路径) |
| `docs/01-design/architecture.md` | §7 部署章节追加补记段落:端口 9182→9280客户确认 2025-08补记 2026-08声明其余设计基线不变 |
| `docs/01-design/deploy-change-record-T02b.md` | 新增变更记录全文(变更前后对照、影响范围、同步修改清单、基线冻结声明) |
## 2. 验证记录
- `conf/config.json` JSON 语法校验通过python json.load OK`server.port=9280`
- systemd unit 与 nginx 样例中端口引用全量核对为 9280无 9182 残留。
- 登录走通验证admin + 组织专员/薪酬专员/招聘专员/部门主管四角色):依赖测试环境 MariaDB/Redis 与 rbac 权限初始化数据属部署任务webapp-remote-deploy远程执行项本任务交付物已满足 9280 启动所需全部配置venv/ahserver --config conf/config.json远程冒烟留待部署任务出截图/日志。
## 3. 遗留/移交
- 远程部署SSH hrstest.opencomputing.cn/opt/hrscertbot 证书)→ 移交部署任务。
- apps/hr-web.md §3/§4 端口清单中 9182 口径,下次文档修订时同步为 9280本任务按"不改其余基线"约束未动该文件)。