Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

docs: extract manual deployment and updating sections to docs/manual-deploy

yoma068efa539825
diff --git a/README.md b/README.md
index c7065793..3f307e6c 100644
--- a/README.md
+++ b/README.md
@@ -39,58 +39,8 @@ Agents should follow [AI Agent Cloudflare Deployment](docs/agent-deploy-cloudfla
### Manual Deployment
-1. Fork the official repository:
+Please refer to the [Cloudflare Manual Deployment Guide](docs/manual-deploy.en-US.md) for step-by-step instructions on manual installation and updating.
- ```text
- https://github.com/tianma-if/edgeever
- ```
-
-2. Clone your fork:
-
- ```sh
- git clone <your fork repository URL>
- cd edgeever
- ```
-
-3. Deploy with the helper commands:
-
- ```sh
- cp .env.local.example .env.local
- bun install
- EDGE_EVER_PASSWORD='<your password>' bun run deploy:setup
- bun run deploy:doctor
- bun run deploy
- ```
-
-If you prefer creating Cloudflare resources manually:
-
-```sh
-cp .env.local.example .env.local
-bun install
-bunx wrangler d1 create edgeever
-bunx wrangler r2 bucket create edgeever-resources
-bun run auth:hash -- <your password>
-bun run deploy
-```
-
-Put the returned D1 `database_id` and password hash into your local `.env.local`.
-
-## Updating
-
-If you deployed from a fork:
-
-1. Open your EdgeEver fork on GitHub.
-2. Click **Sync fork** to pull the latest official code.
-3. Redeploy locally:
-
- ```sh
- git pull
- bun install
- bun run deploy:doctor
- bun run deploy
- ```
-
-Syncing the fork only updates your GitHub repository. You still need to redeploy for the Cloudflare instance to change.
## Features
diff --git a/README.zh-CN.md b/README.zh-CN.md
index f1cac033..9b4fb2d0 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -41,58 +41,8 @@ Agent 应优先按 [AI Agent Cloudflare Deployment](docs/agent-deploy-cloudflare
### 手动部署
-1. Fork 官方仓库:
+关于手动安装和更新的详细步骤,请参考 [Cloudflare 手动部署指南](docs/manual-deploy.md)。
- ```text
- https://github.com/tianma-if/edgeever
- ```
-
-2. Clone 你自己的 Fork 仓库:
-
- ```sh
- git clone <你的 Fork 仓库 URL>
- cd edgeever
- ```
-
-3. 使用自动化辅助命令部署:
-
- ```sh
- cp .env.local.example .env.local
- bun install
- EDGE_EVER_PASSWORD='<你的密码>' bun run deploy:setup
- bun run deploy:doctor
- bun run deploy
- ```
-
-如果你想手动创建 Cloudflare 资源,也可以使用 CLI:
-
-```sh
-cp .env.local.example .env.local
-bun install
-bunx wrangler d1 create edgeever
-bunx wrangler r2 bucket create edgeever-resources
-bun run auth:hash -- <你的密码>
-bun run deploy
-```
-
-把 D1 创建命令返回的 `database_id` 和密码 hash 填入本机 `.env.local`。
-
-## 更新到最新版
-
-如果你是通过 Fork 部署的:
-
-1. 打开你自己的 EdgeEver Fork 仓库。
-2. 点击 GitHub 页面上的 **Sync fork**,同步官方仓库的最新代码。
-3. 回到本地项目目录重新部署:
-
- ```sh
- git pull
- bun install
- bun run deploy:doctor
- bun run deploy
- ```
-
-同步 Fork 只会更新你 GitHub 仓库里的代码,不会自动更新已经部署到 Cloudflare 的实例。同步后必须重新执行部署命令,更新才会生效。
## 功能
diff --git a/docs/manual-deploy.en-US.md b/docs/manual-deploy.en-US.md
new file mode 100644
index 00000000..6c74ada7
--- /dev/null
+++ b/docs/manual-deploy.en-US.md
@@ -0,0 +1,76 @@
+# Cloudflare Manual Deployment Guide
+
+If you are comfortable with Cloudflare and the command line, or prefer customized control over the deployment process, follow this guide for manual deployment and future updates.
+
+> 💡 **Tip**: If you are deploying using an AI assistant (such as Claude Code, Codex, Antigravity, Cursor, or Trae), the agent should follow the [AI Agent Cloudflare Deployment](agent-deploy-cloudflare.md) runbook.
+
+## Deployment Steps
+
+1. **Fork the official repository**:
+ Visit and fork the official repository: [https://github.com/tianma-if/edgeever](https://github.com/tianma-if/edgeever)
+
+2. **Clone your fork**:
+ ```sh
+ git clone <your fork repository URL>
+ cd edgeever
+ ```
+
+3. **Deploy with the automated helper commands**:
+ ```sh
+ # Copy the configuration template
+ cp .env.local.example .env.local
+
+ # Install dependencies
+ bun install
+
+ # Initialize deployment resources and set the first login password
+ EDGE_EVER_PASSWORD='<your password>' bun run deploy:setup
+
+ # Check the deployment environment and configurations
+ bun run deploy:doctor
+
+ # Deploy to Cloudflare
+ bun run deploy
+ ```
+
+### Creating Cloudflare Resources Manually
+
+If you prefer not to use the automated `deploy:setup` helper, you can create the resources manually using Cloudflare CLI (Wrangler):
+
+```sh
+# Copy configuration template and install dependencies
+cp .env.local.example .env.local
+bun install
+
+# Create the D1 database
+bunx wrangler d1 create edgeever
+
+# Create the R2 bucket
+bunx wrangler r2 bucket create edgeever-resources
+
+# Generate the password hash
+bun run auth:hash -- <your password>
+
+# Deploy
+bun run deploy
+```
+
+After creation, copy the D1 `database_id` and the generated password hash into your local `.env.local` file.
+
+---
+
+## Updating to the Latest Version
+
+When a new version is released, you can sync your fork and redeploy to apply updates:
+
+1. Open your EdgeEver fork on GitHub.
+2. Click **Sync fork** to pull the latest official code into your fork.
+3. Pull the updates locally and redeploy:
+ ```sh
+ git pull
+ bun install
+ bun run deploy:doctor
+ bun run deploy
+ ```
+
+> ⚠️ **Important**: Syncing the fork on GitHub only updates your repository code. It does not redeploy your Cloudflare instance. You must redeploy locally (or via an Agent) for the updates to take effect.
diff --git a/docs/manual-deploy.md b/docs/manual-deploy.md
new file mode 100644
index 00000000..b2c7e135
--- /dev/null
+++ b/docs/manual-deploy.md
@@ -0,0 +1,76 @@
+# Cloudflare 手动部署指南
+
+如果你熟悉 Cloudflare 和命令行,或者想自定义/精细控制部署流程,可以按照以下指南进行手动部署与后续更新。
+
+> 💡 **提示**:如果是通过 AI 助手(Claude Code、Codex、Antigravity、Cursor、Trae 等)进行部署,AI 助手应优先参考 [AI Agent Cloudflare Deployment](agent-deploy-cloudflare.md) 约定。
+
+## 部署步骤
+
+1. **Fork 官方仓库**:
+ 访问并 Fork 官方仓库:[https://github.com/tianma-if/edgeever](https://github.com/tianma-if/edgeever)
+
+2. **Clone 你的 Fork 仓库**:
+ ```sh
+ git clone <你的 Fork 仓库 URL>
+ cd edgeever
+ ```
+
+3. **使用自动化辅助命令部署**:
+ ```sh
+ # 复制配置文件模板
+ cp .env.local.example .env.local
+
+ # 安装依赖
+ bun install
+
+ # 执行部署初始化,并设置首次登录密码
+ EDGE_EVER_PASSWORD='<你的密码>' bun run deploy:setup
+
+ # 诊断部署环境与配置
+ bun run deploy:doctor
+
+ # 执行部署
+ bun run deploy
+ ```
+
+### 完全手动创建 Cloudflare 资源
+
+如果你不想使用 `deploy:setup` 自动化脚本,也可以完全手动使用 Cloudflare CLI (Wrangler) 创建资源:
+
+```sh
+# 复制配置文件模板并安装依赖
+cp .env.local.example .env.local
+bun install
+
+# 手动创建 D1 数据库
+bunx wrangler d1 create edgeever
+
+# 手动创建 R2 存储桶
+bunx wrangler r2 bucket create edgeever-resources
+
+# 生成密码 hash(用于后台验证)
+bun run auth:hash -- <你的密码>
+
+# 执行部署
+bun run deploy
+```
+
+部署完成后,将 D1 创建命令返回的 `database_id` 以及生成的密码 hash 手动填入本机 `.env.local` 文件中。
+
+---
+
+## 更新到最新版
+
+当官方仓库发布新版本时,如果你的实例是通过 Fork 部署的,可以按照以下步骤拉取最新代码并更新:
+
+1. 打开你自己的 EdgeEver Fork 仓库页面。
+2. 点击页面上的 **Sync fork**,将官方仓库的最新代码同步到你的 Fork。
+3. 在本地项目目录中拉取更新并重新部署:
+ ```sh
+ git pull
+ bun install
+ bun run deploy:doctor
+ bun run deploy
+ ```
+
+> ⚠️ **注意**:同步 Fork 仅仅更新了你 GitHub 仓库里的代码,并不会自动更新已经部署在 Cloudflare 的 Worker/Pages 实例。必须在本地(或通过 Agent)重新执行部署命令,更新才会生效。