Skip to content

feat: 添加本地部署方案(一键脚本 + 详细文档)#142

Draft
Simpleyyt wants to merge 3 commits intomainfrom
cursor/-bc-e3ab5504-34fe-4aa7-a3a4-83a8cd74d733-7524
Draft

feat: 添加本地部署方案(一键脚本 + 详细文档)#142
Simpleyyt wants to merge 3 commits intomainfrom
cursor/-bc-e3ab5504-34fe-4aa7-a3a4-83a8cd74d733-7524

Conversation

@Simpleyyt
Copy link
Copy Markdown
Owner

概述

提供完整的本地部署方案,包括一键部署脚本和中英文详细文档,降低用户的部署门槛。

变更内容

新增文件

  • setup.sh — 一键部署脚本

    • 交互式配置 LLM(API 地址、密钥、模型名)
    • 选择认证方式(local 单用户 / none 无认证 / password 密码注册)
    • 选择搜索引擎(支持免 API 密钥的 bing_web / baidu_web)
    • 自动生成安全的 JWT_SECRET_KEY 和 PASSWORD_SALT
    • 支持 --build-from-source 从源码构建
    • 支持 --skip-config 跳过配置
    • 自动检测 Docker 和 Docker Compose 环境
  • docs/local_deployment.md — 中文本地部署文档

  • docs/en/local_deployment.md — 英文本地部署文档

    • 一键部署和手动部署两种方式
    • 常用模型配置示例(DeepSeek / OpenAI / Ollama)
    • 认证方式对比说明
    • 运维管理命令
    • FAQ 常见问题

修改文件

  • .env.example — 添加 MODEL_PROVIDER 字段
  • docker-compose-example.yml — 添加 MODEL_PROVIDER 字段
  • README.md / README_zh.md — 在部署指南中添加一键部署章节
  • docs/_sidebar.md / docs/en/_sidebar.md — 在侧边栏添加本地部署链接
  • docs/quick_start.md / docs/en/quick_start.md — 同步更新 docker-compose 示例

使用方式

git clone https://github.com/simpleyyt/ai-manus.git
cd ai-manus
./setup.sh

测试

  • bash -n setup.sh — 语法检查通过
  • ./setup.sh --help — 帮助信息正确显示
  • update_doc.sh — 文档同步验证通过
Open in Web Open in Cursor 

cursoragent and others added 3 commits March 26, 2026 18:13
- Interactive configuration for LLM, authentication, and search
- Auto-detect Docker and Docker Compose
- Support --build-from-source for building from local code
- Support --skip-config to reuse existing .env
- Generate secure random JWT_SECRET_KEY and PASSWORD_SALT
- Recommend 'local' auth mode for personal deployment

Co-authored-by: Simpleyyt <simpleyyt@gmail.com>
- Detailed one-click setup instructions
- Manual deployment step-by-step guide
- Common model configuration examples (DeepSeek, OpenAI, Ollama)
- Authentication mode comparison table
- Operations & management commands
- FAQ section for common issues

Co-authored-by: Simpleyyt <simpleyyt@gmail.com>
…IDER

- Add MODEL_PROVIDER to .env.example and docker-compose-example.yml
- Add one-click setup section to both README files
- Add local deployment link to sidebar navigation
- Sync docker-compose-example.yml and .env.example into docs via update_doc.sh

Co-authored-by: Simpleyyt <simpleyyt@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants