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

- 更新所有文档中的克隆命令
- 添加两种克隆方式:克隆到当前目录或指定文件夹
- 避免默认创建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(git push:*)",
"Bash(chmod:*)", "Bash(chmod:*)",
"Bash(lsof:*)", "Bash(lsof:*)",
"Bash(kill:*)" "Bash(kill:*)",
"Bash(cat:*)"
], ],
"deny": [], "deny": [],
"ask": [] "ask": [],
"additionalDirectories": [
"/Users/apple/Documents/cursor/1111111/agent"
]
} }
} }

View File

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

View File

@@ -17,8 +17,10 @@
### 克隆仓库 ### 克隆仓库
```bash ```bash
git clone http://123.60.55.248:3000/Duguay/agent.git git clone http://123.60.55.248:3000/Duguay/agent.git .
cd agent # 或者
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 到: 如有问题或建议,请提交 Issue 到: