修复多个问题 + 更新部署配置

## 修复
1. 我的页面:简化头像/昵称UI布局
2. 提现API:增加容错处理,自动创建表
3. 找伙伴:放宽匹配条件,匹配所有注册用户

## 部署
1. 更新.cursorrules为小型宝塔配置
2. 服务器IP: 42.194.232.22
This commit is contained in:
卡若
2026-01-29 13:04:38 +08:00
parent 051f064707
commit 174253584f
5 changed files with 127 additions and 85 deletions

View File

@@ -31,12 +31,14 @@
## 自动部署规则
### 服务器信息
- **服务器IP**: 122.51.107.140
- **用户**: ubuntu
### 服务器信息(小型宝塔)
- **服务器IP**: 42.194.232.22
- **用户**: root
- **密码**: Zhiqun1984
- **项目路径**: /www/wwwroot/soul
- **PM2进程名**: soul
- **端口**: 3006
- **宝塔面板**: https://42.194.232.22:9988/ckbpanel (ckb/zhiqun1984)
### GitHub仓库
- **地址**: https://github.com/fnvtk/Mycontent.git
@@ -51,24 +53,29 @@
```bash
git add -A
git commit -m "描述"
```
2. **推送到GitHub**
```bash
git push origin soul-content
```
3. **部署到服务器**
2. **部署到小型宝塔服务器**
```bash
ssh ubuntu@122.51.107.140 "cd /www/wwwroot/soul && git pull && pnpm build && pm2 restart soul"
```
# 压缩项目
cd /Users/karuo/Documents/开发/3、自营项目/一场soul的创业实验
tar --exclude='node_modules' --exclude='.next' --exclude='.git' -czf /tmp/soul_update.tar.gz .
如果SSH连接失败手动登录宝塔面板执行
```bash
cd /www/wwwroot/soul
git pull
pnpm build
pm2 restart soul
# 上传到服务器
sshpass -p 'Zhiqun1984' scp /tmp/soul_update.tar.gz root@42.194.232.22:/tmp/
# SSH部署
sshpass -p 'Zhiqun1984' ssh root@42.194.232.22 "
cd /www/wwwroot/soul
rm -rf app components lib public styles *.json *.js *.ts *.mjs *.md .next
tar -xzf /tmp/soul_update.tar.gz
rm /tmp/soul_update.tar.gz
export PATH=/www/server/nodejs/v22.14.0/bin:\$PATH
pnpm install
pnpm run build
pm2 restart soul
"
```
4. **上传小程序**