Files
nexus/wiki/sources/trae-remote-dev-guide.md
2026-04-14 16:02:50 +08:00

37 lines
1.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.
---
title: "Trae远程开发部署指南"
type: source
tags: [Trae, Remote-SSH, Docker, Ubuntu]
date: 2026-04-14
source_file: raw/Technical/Trae远程开发部署指南.md
---
## Summary
- 核心主题通过Trae IDE远程连接Ubuntu服务器进行Docker项目开发
- 问题域:内网开发环境的远程协作配置
- 方法/机制SSH免密 → Trae Remote-SSH → Attach容器/编辑宿主机
- 结论/价值完整的远程开发工作流模式AAttach容器适合调试
## Key Claims
- Ubuntu 2是开发服务器代码挂载Ubuntu 1是生产服务器镜像打包
- SSH免密需要配置SSH Key并上传公钥
- 用户必须在docker用户组中才能操作Docker
- 模式AAttach到运行中容器推荐调试
- 模式B编辑宿主机文件 + Docker CLI适合编排
## Key Concepts
- [[Remote-SSH]]通过SSH远程连接开发
- [[Bind-Mount]]:开发环境代码修改实时生效
- [[Docker-用户组]]免sudo操作Docker
## Key Entities
- [[Trae]]支持VS Code插件生态的IDE
- [[Ubuntu]]Linux服务器
- [[Docker]]:容器平台
## Connections
- [[Git-Push-连接重置]] ← 版本控制 ← [[Trae远程开发部署]]
## Contradictions
- 尚未发现