ai-chatbot/部署状态.md
Your Name 53ddb7e585
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Initial commit - clean repository
2025-12-17 20:15:18 +08:00

76 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

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.

# 部署状态报告
## ✅ 当前状态
### 应用状态
- **状态**: ✅ 运行中(开发模式)
- **端口**: 3001
- **进程管理**: PM2
- **模式**: 开发模式 (next dev)
### FRPC 穿透
- **配置名称**: ai-chatbot
- **本地地址**: 127.0.0.1:3001
- **远程端口**: 5245
- **状态**: ✅ 已配置
## 🌐 访问地址
### 通过穿透访问
- **地址**: `http://156.225.27.52:5245`
- **状态**: 需要测试
### 本地访问
- **地址**: `http://localhost:3001`
- **状态**: ✅ 正常(返回重定向到认证)
## ⚠️ 当前问题
1. **构建失败**: 生产构建因 settings 页面预渲染错误而失败
2. **开发模式**: 当前使用开发模式运行(`next dev`)
3. **性能**: 开发模式性能较低,建议修复构建问题后使用生产模式
## 🔧 下一步操作
### 选项 1: 修复构建问题(推荐)
需要修复 `/app/(admin)/settings/page.tsx` 的预渲染问题,然后:
```bash
pnpm build
pm2 restart ai-chatbot
```
### 选项 2: 继续使用开发模式
开发模式可以工作,但性能较低。当前配置已设置为开发模式。
## 📋 测试步骤
1. **测试本地访问**:
```bash
curl http://localhost:3001
```
2. **测试穿透访问**:
```bash
curl http://156.225.27.52:5245
```
3. **检查应用日志**:
```bash
pm2 logs ai-chatbot
```
4. **检查FRPC日志**:
```bash
journalctl -u frpc.service -f
```
## 📝 配置信息
- **应用目录**: `/var/www/ai-chatbot`
- **PM2配置**: `/var/www/ai-chatbot/ecosystem.config.js`
- **FRPC配置**: `/etc/frp/frpc.ini`
- **环境变量**: `/var/www/ai-chatbot/.env.local`