1.4 KiB
1.4 KiB
title, type, tags, date
| title | type | tags | date | ||||
|---|---|---|---|---|---|---|---|
| Trae远程开发部署指南 | source |
|
2026-04-03 |
Source File
Summary
- 核心主题:Trae IDE通过Remote-SSH连接Ubuntu服务器进行远程开发
- 问题域:内网开发环境配置、Docker容器内开发
- 方法/机制:SSH免密 → Remote-SSH连接 → Attach容器/编辑宿主机
- 结论/价值:两种模式——Attach容器(隔离环境)或宿主机编辑(容器编排)
Key Claims
- 架构:Ubuntu2(Dev)存放源码+Trae SSH远程,Ubuntu1(Prod)镜像打包
- SSH免密:ssh-copy-id上传公钥,~/.ssh/config配置别名
- Docker权限:usermod -aG docker shenwei使shenwei用户有权操作Docker
- Remote-SSH:安装Remote-SSH/Docker/Dev Containers插件
- 模式A(推荐):Attach到运行中的Docker容器,环境完全隔离
- 模式B:编辑Ubuntu文件系统代码,终端调用docker命令
- 故障排除:Git凭证转发、文件UID/GID权限、内网穿透Tailscale
Key Concepts
- 远程开发:Trae Remote-SSH开发模式
- Docker开发模式:Attach容器 vs 宿主机编辑
Key Entities
Connections
- Trae远程开发部署指南 ← documents 远程开发
Contradictions
- 无冲突