hyapp-deploly/README.md
2026-05-21 16:43:57 +08:00

63 lines
1.3 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.

# Deploy Platform
项目运维平台。
## Scripts
```bash
npm install
make build
make up
npm run dev
npm run build
npm run lint
npm run test
```
## Docs
- [UI 设计规范](./docs/liquid-glass-admin-ui-guideline.md)
- [第一版开发内容](./docs/v1-development-scope.md)
- [模块化开发规范](./docs/modular-development-guideline.md)
## Standalone Deploy
构建后可一键运行 `dist``deploy` API
```bash
npm run deploy:run
```
已有 `dist` 时直接启动:
```bash
npm run deploy:serve
```
默认地址:`http://127.0.0.1:29200`
也可以用 Makefile 一键运行:
```bash
make up
```
部署模板和 TAT 脚本见 `deploy/README.md`
## 数据资源
- API`GET /deploy/api/hyapp/resources?remote=1`
- 链路Tencent TAT -> deploy 机器
- MySQL、Redis、MQ腾讯云托管资源
- 业务服务器配置:优先 SSH失败后 TAT 兜底
- 前端状态TAT 未返回前保持加载
- 禁止:生产 SQL/Mongo 查询入口
## 微服务
- 列表:`GET /deploy/api/hyapp/discover?remote=1`
- 详情 YAML`GET /deploy/api/hyapp/discover?remote=1&includeConfig=1`
- 数据来源TAT 读取 systemd、Docker、镜像、资源、日志和配置
- YAML 入口:列表右侧三点、详情配置区
- 禁止:静态假数据兜底展示运行态