Add .gitignore, update paths, remove tracked artifacts

- Add .gitignore for __pycache__, *.db, *.log, nohup.out
- Update CLAUDE.md paths from /tmp/badge-admin to /home/gpsystem
- Remove cached/generated files from git tracking

via HAPI (https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
This commit is contained in:
2026-03-17 01:15:03 +00:00
parent 8a18a5ff16
commit 1bdbe4fa19
31 changed files with 10 additions and 1901 deletions

View File

@@ -8,7 +8,7 @@ KKS P240/P241 蓝牙工牌管理后台,基于 FastAPI + SQLAlchemy + asyncio T
## 项目结构
```
/tmp/badge-admin/
/home/gpsystem/
├── run.py # 启动脚本 (uvicorn)
├── requirements.txt # Python 依赖
├── frpc.toml # FRP 客户端配置 (TCP隧道)
@@ -83,7 +83,7 @@ cd /tmp/badge-admin
nohup python3 -m uvicorn app.main:app --host 0.0.0.0 --port 8088 > server.log 2>&1 &
# 启动 FRP 客户端 (TCP隧道)
nohup /tmp/frpc -c /tmp/badge-admin/frpc.toml > /tmp/frpc.log 2>&1 &
nohup /tmp/frpc -c /home/gpsystem/frpc.toml > /tmp/frpc.log 2>&1 &
# 检查服务状态
curl http://localhost:8088/health
@@ -376,12 +376,12 @@ remotePort = 5001
```bash
# 查看实时日志
tail -f /tmp/badge-admin/server.log | grep -aE "TCP|login|heartbeat|error|geocod|Tianditu" --line-buffered
tail -f /home/gpsystem/server.log | grep -aE "TCP|login|heartbeat|error|geocod|Tianditu" --line-buffered
# 检查数据库
python3 -c "
import sqlite3
conn = sqlite3.connect('/tmp/badge-admin/badge_admin.db')
conn = sqlite3.connect('/home/gpsystem/badge_admin.db')
cur = conn.cursor()
cur.execute('SELECT id, imei, device_type, status, battery_level FROM devices')
for row in cur.fetchall(): print(row)