476d87c678
更新 .cursorrules 与 linux-dev-paths,明确不配置/探测 GITEA token。 Co-authored-by: Cursor <cursoragent@cursor.com>
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
# Nexus 6.0 — Cursor 速查
|
||
|
||
> SSOT: [docs/project/nexus-functional-development-guide.md](docs/project/nexus-functional-development-guide.md)
|
||
> Handoff: [docs/project/AI-HANDOFF-2026-06-03.md](docs/project/AI-HANDOFF-2026-06-03.md)
|
||
|
||
## 栈
|
||
|
||
FastAPI + Async SQLAlchemy + Redis · Vue 3 + Vuetify 4 SPA(14 页)· Vite → `web/app/`
|
||
|
||
## 环境(勿在仓库写密码)
|
||
|
||
- 生产: `https://api.synaglobal.vip` · 端口 8600 · `ssh nexus`
|
||
- 本地: `~/Nexus` 或 `$NEXUS_ROOT` · 见 [linux-dev-paths.md](docs/project/linux-dev-paths.md)
|
||
- 凭据: 仅 `.env`(不入 git)
|
||
- **Gitea:公共仓库,不需要凭据**(匿名 clone/pull;勿配置/探测 token、勿写 `nexus-1panel.secrets.sh` 中的 Gitea 字段)
|
||
|
||
## 关键路径
|
||
|
||
| 用途 | 路径 |
|
||
|------|------|
|
||
| 后端入口 | `server/main.py` |
|
||
| 前端路由 | `frontend/src/router/index.ts` |
|
||
| API 客户端 | `frontend/src/api/index.ts` |
|
||
| Sync | `server/api/sync_v2.py` |
|
||
| 门控 | `deploy/pre_deploy_check.sh` |
|
||
| 本地验证 | `bash scripts/local_verify.sh` |
|
||
|
||
## 铁律
|
||
|
||
见 `.cursor/rules/perfect-implementation.mdc` · `nexus-security.mdc` — 完美实现、无静默吞错、无明文密钥、CUD 审计。
|
||
|
||
## 部署
|
||
|
||
```bash
|
||
bash deploy/pre_deploy_check.sh && bash deploy/deploy-production.sh
|
||
```
|
||
|
||
前端: `cd frontend && npx vite build` → tar/scp(见 `deploy/deploy-frontend.sh`)
|
||
|
||
## 进度条(改代码时输出)
|
||
|
||
```
|
||
□实现 □本地验证 □审计8步 □部署 □健康检查 □浏览器验证 □changelog
|
||
```
|