新功能: 一键更新功能 v1.2.0
新增功能: - 添加一键更新命令(--update 参数) - 交互式菜单新增「更新/升级」选项 - 支持三种更新方式(curl/wget/本地脚本) 更新流程: - 智能备份数据库和用户文件到临时目录 - 停止服务并拉取最新代码 - 保留重要文件(data/storage/.env) - 自动更新后端依赖(npm install) - 重启服务并进行健康检查 - 显示更新后的版本信息 安全保障: - 更新前需用户确认 - 自动备份所有用户数据 - 保留配置文件和Nginx配置 - 更新失败时提供清晰的错误提示 文档更新: - 一键部署命令.txt: 添加更新命令和v1.2.0说明 - INSTALL_GUIDE.md: 详细的更新指南和注意事项 版本: v1.2.0 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,42 @@ wget -qO- https://gitee.com/yu-yon/vue-driven-cloud-storage/raw/master/install.s
|
||||
|
||||
---
|
||||
|
||||
## 🔄 一键更新命令
|
||||
|
||||
如果您已经部署了玩玩云,可以使用以下命令快速更新到最新版本:
|
||||
|
||||
### 方式1: 使用 curl (推荐)
|
||||
```bash
|
||||
curl -fsSL https://gitee.com/yu-yon/vue-driven-cloud-storage/raw/master/install.sh | bash -s -- --update
|
||||
```
|
||||
|
||||
### 方式2: 使用 wget
|
||||
```bash
|
||||
wget -qO- https://gitee.com/yu-yon/vue-driven-cloud-storage/raw/master/install.sh | bash -s -- --update
|
||||
```
|
||||
|
||||
### 方式3: 本地脚本
|
||||
```bash
|
||||
wget https://gitee.com/yu-yon/vue-driven-cloud-storage/raw/master/install.sh
|
||||
bash install.sh --update
|
||||
```
|
||||
|
||||
### 更新说明
|
||||
更新过程会:
|
||||
- ✅ 从Gitee拉取最新代码
|
||||
- ✅ 自动备份数据库和用户文件
|
||||
- ✅ 更新后端依赖(npm install)
|
||||
- ✅ 重启后端服务
|
||||
- ✅ 保留所有配置和用户数据
|
||||
|
||||
更新不会影响:
|
||||
- ✅ 数据库文件(用户、分享链接等)
|
||||
- ✅ 用户上传的文件(storage目录)
|
||||
- ✅ 配置文件(.env)
|
||||
- ✅ Nginx配置
|
||||
|
||||
---
|
||||
|
||||
## 📋 系统要求
|
||||
|
||||
### 支持的操作系统
|
||||
|
||||
Reference in New Issue
Block a user