Files
Nexus/docs/project/linux-dev-paths.md
T
Nexus Deploy 811eb97fbf chore: Ubuntu local dev scripts, deploy gate, and audit changelogs
Rename WSL helpers to Linux-native scripts, expose Redis in docker-compose,
prefer .venv tools in pre_deploy_check, and record 2026-06-04 audit waves.
2026-06-04 23:02:21 +08:00

45 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.
# Linux 开发路径约定(SSOT
> **生效日期**: 2026-06-04
> 取代各 handoff 文档中的 `C:\Users\...` / `/mnt/c/...` 示例。
## 工作区
| 变量 | 示例 |
|------|------|
| `NEXUS_ROOT` | `~/Nexus``/home/you/Nexus` |
| Git 克隆 | `git clone http://66.154.115.8:3000/admin/Nexus.git "$NEXUS_ROOT"` |
## SSH / 部署
| 用途 | Linux |
|------|--------|
| SSH 配置 | `~/.ssh/config``Host nexus` |
| 私钥 | `~/.ssh/id_rsa_nexus` |
| 生产目录 | `/www/wwwroot/api.synaglobal.vip/` |
```bash
ssh nexus "cd /www/wwwroot/api.synaglobal.vip && git pull && supervisorctl restart nexus"
```
## Cursor MCP
- MySQL`scripts/linux_mcp_mysql.sh`(见 `docs/project/mysql-mcp-setup.md` §4
- 本地验证:`bash scripts/local_verify.sh`(见 `docs/project/local-integration-test.md`
- **勿**在 `mcp.json` 使用 `wsl` + Windows 路径(已废弃)
## 历史文档
`docs/handoff-2026-05-31.md``AI-HANDOFF-2026-05-23.md` 等保留 Windows 示例作归档;**以本文 + `AI-HANDOFF-2026-06-03.md` 为准**。
## 本地验收账号
```bash
# .env(不入 git
NEXUS_TEST_ADMIN_USER=admin
NEXUS_TEST_ADMIN_PASSWORD='你的本地密码'
python3 scripts/seed_local_admin.py # 仅空库 + 127.0.0.1
cd frontend && NEXUS_E2E_BASE=http://127.0.0.1:8600 npm run test:e2e
```