docs: 将所有文档迁移到 docs/ 目录

- 移动42个文档文件到 docs/ 目录
  - 更新 .gitignore 允许 docs/ 下的 .md 文件
  - 删除根目录下的重复文档文件

  📁 文档分类:
  - StockDetailPanel 重构文档(3个)
  - PostHog 集成文档(6个)
  - 系统架构和API文档(33个)

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

  Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-10-30 14:51:22 +08:00
parent 3a5c1b9d9c
commit 09db05c448
43 changed files with 23850 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
# 🚀 部署快速上手指南
## 首次使用5 分钟)
### 步骤 1: 运行配置向导
```bash
npm run deploy:setup
```
按提示输入以下信息:
- 服务器地址:`你的服务器IP或域名`
- SSH 用户名:`ubuntu`
- SSH 端口:`22`
- SSH 密钥:按 `y` 使用默认密钥
- 企业微信通知:按 `y` 启用(或按 `n` 跳过)
配置完成!✅
---
## 日常部署2 分钟)
### 步骤 1: 部署到生产环境
```bash
npm run deploy
```
### 步骤 2: 确认部署
看到部署预览后,输入 `yes` 确认
等待 2-3 分钟,部署完成!🎉
---
## 如果出问题了
### 立即回滚
```bash
npm run rollback
```
输入 `yes` 确认10 秒内恢复!
---
## 常用命令
```bash
# 部署
npm run deploy
# 回滚
npm run rollback
# 查看可回滚的版本
npm run rollback -- list
# 重新配置
npm run deploy:setup
```
---
## 需要帮助?
查看完整文档:[DEPLOYMENT.md](./DEPLOYMENT.md)
---
**就这么简单!**