修复克隆路径问题,更新部署文档

- 更新所有文档中的克隆命令
- 添加两种克隆方式:克隆到当前目录或指定文件夹
- 避免默认创建agent子文件夹导致的路径问题
- 添加部署注意事项说明
- 确保项目结构与克隆后一致
This commit is contained in:
KQL
2025-08-24 14:27:00 +08:00
parent 6af4efbabc
commit 984421aa68
3 changed files with 48 additions and 16 deletions

View File

@@ -12,9 +12,13 @@
"Bash(git push:*)",
"Bash(chmod:*)",
"Bash(lsof:*)",
"Bash(kill:*)"
"Bash(kill:*)",
"Bash(cat:*)"
],
"deny": [],
"ask": []
"ask": [],
"additionalDirectories": [
"/Users/apple/Documents/cursor/1111111/agent"
]
}
}

View File

@@ -6,9 +6,13 @@
#### Mac/Linux 用户
```bash
# 克隆项目
git clone http://123.60.55.248:3000/Duguay/agent.git
cd agent
# 方法1克隆到当前目录
mkdir ai-workflow && cd ai-workflow
git clone http://123.60.55.248:3000/Duguay/agent.git .
# 方法2克隆到指定文件夹
git clone http://123.60.55.248:3000/Duguay/agent.git ai-workflow
cd ai-workflow
# 运行快速启动脚本
./quick-start.sh
@@ -16,9 +20,13 @@ cd agent
#### Windows 用户
```bash
# 克隆项目
git clone http://123.60.55.248:3000/Duguay/agent.git
cd agent
# 方法1克隆到当前目录
mkdir ai-workflow && cd ai-workflow
git clone http://123.60.55.248:3000/Duguay/agent.git .
# 方法2克隆到指定文件夹
git clone http://123.60.55.248:3000/Duguay/agent.git ai-workflow
cd ai-workflow
# 运行快速启动脚本
quick-start.bat
@@ -47,11 +55,13 @@ git --version # 确保 Git 已安装
### 2. 获取代码
```bash
# 使用 Git 克隆
git clone http://123.60.55.248:3000/Duguay/agent.git
# 方法1克隆到当前目录
mkdir my-project && cd my-project
git clone http://123.60.55.248:3000/Duguay/agent.git .
# 进入项目目录
cd agent
# 方法2克隆到指定目录
git clone http://123.60.55.248:3000/Duguay/agent.git my-project
cd my-project
```
### 3. 安装依赖
@@ -85,13 +95,11 @@ npm run serve
#### Python 3
```bash
cd agent
python3 -m http.server 5175 --bind 127.0.0.1
```
#### Python 2
```bash
cd agent
python -m SimpleHTTPServer 5175
```

View File

@@ -17,8 +17,10 @@
### 克隆仓库
```bash
git clone http://123.60.55.248:3000/Duguay/agent.git
cd agent
git clone http://123.60.55.248:3000/Duguay/agent.git .
# 或者
git clone http://123.60.55.248:3000/Duguay/agent.git ai-workflow
cd ai-workflow
```
### 安装依赖
@@ -140,6 +142,24 @@ A: 支持所有现代浏览器,建议使用 Chrome 或 Firefox 的最新版本
- 添加交互式节点导航
- 集成图片预览功能
## 部署注意事项
### 克隆方式说明
由于项目文件直接在仓库根目录,建议使用以下方式克隆:
```bash
# 推荐:克隆到指定文件夹
git clone http://123.60.55.248:3000/Duguay/agent.git my-workflow
cd my-workflow
# 或克隆到当前空目录
mkdir my-workflow && cd my-workflow
git clone http://123.60.55.248:3000/Duguay/agent.git .
```
避免直接使用 `git clone url` 以防止路径混乱。
## 联系方式
如有问题或建议,请提交 Issue 到: