xiaso-flnxi-website/QUICK_UPDATE.md
Your Name b1eab32c75 初始提交: FLNXI电商素材系统官方网站
- Next.js 项目框架
- 完整的认证系统集成
- 数据库配置和部署脚本
- 产品价格体系和文档
- Docker 部署配置
2025-12-13 21:38:32 +08:00

106 lines
2.0 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 🚀 快速更新指南
## 一键复制命令
### 1️⃣ 备份现有配置
```bash
cp /www/server/panel/vhost/nginx/scs.flnxi.com.conf /www/server/panel/vhost/nginx/scs.flnxi.com.conf.backup.$(date +%Y%m%d_%H%M%S)
```
### 2️⃣ 编辑 Nginx 配置
```bash
vim /www/server/panel/vhost/nginx/scs.flnxi.com.conf
```
**操作步骤**:
1. 按 `i` 进入编辑模式
2. 删除所有内容(可以用 `ggdG`)
3. 复制 `nginx-no-cache.conf` 的全部内容并粘贴
4. 按 `Esc` 退出编辑模式
5. 输入 `:wq` 保存并退出
### 3️⃣ 测试并重载 Nginx
```bash
nginx -t && nginx -s reload
```
### 4️⃣ 验证更新
```bash
curl -I https://scs.flnxi.com/ | grep -i cache
```
应该看到:
```
Cache-Control: no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0
Pragma: no-cache
Expires: 0
```
---
## 🌐 浏览器操作
### Chrome/Edge
1. 访问 https://scs.flnxi.com
2. 按 `F12` 打开开发者工具
3. 右键点击刷新按钮
4. 选择"清空缓存并硬性重新加载"
### Firefox
1. 按 `Ctrl + Shift + Delete`
2. 勾选"缓存"
3. 点击"立即清除"
4. 刷新页面
---
## ✅ 检查结果
访问网站后应该看到:
- ✅ 导航栏有"更新日志"链接
- ✅ 点击可以跳转到更新日志页面
- ✅ 页面显示完整的版本历史
---
## ⚠️ 如果还是看不到
### 方案1:强制刷新 Docker 容器
```bash
cd /root/xiaso
docker-compose down
docker-compose up -d --build
```
### 方案2:使用无痕模式测试
在浏览器中按 `Ctrl + Shift + N`(Chrome)或 `Ctrl + Shift + P`(Firefox)打开无痕模式,访问网站。
### 方案3:检查日志
```bash
# 查看 Nginx 错误日志
tail -50 /www/wwwlogs/scs.flnxi.com.error.log
# 查看 Docker 日志
docker-compose logs --tail=50 web
```
---
## 📋 完整的 Nginx 配置内容
将以下内容完整复制到 `/www/server/panel/vhost/nginx/scs.flnxi.com.conf`:
(见项目中的 `nginx-no-cache.conf` 文件)
---
**提示**:所有命令需要在服务器上以 root 权限执行