Files
openclaw-monitor/restart.sh
flying-hero c39a912456 feat: 添加龙虾详情页面功能
- 新建 LobsterDetail 组件,显示龙虾详细信息
- 添加 React Router 路由配置 (/lobster/:id)
- Dashboard 添加详情按钮,支持跳转到详情页
- 详情页功能:
  * 基本信息展示(名称、专长、端口、容器、工作区)
  * 运行状态指示器(带脉冲动画)
  * 快速操作(查看记忆、访问服务、复制地址)
  * 运行统计卡片
- 修复 index.html 缺少 root 挂载点问题
- 添加一键重启脚本 restart.sh
- 更新任务跟踪文档

🦸 北极星指引方向,飞行侠展翅飞翔
2026-04-02 13:15:41 +08:00

38 lines
935 B
Bash
Executable File
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.
#!/bin/bash
# 龙虾监控网站 - 重启脚本
echo "🔄 正在重启龙虾监控服务..."
# 停止旧服务
echo "⏹️ 停止旧服务..."
lsof -ti :3000 | xargs kill -9 2>/dev/null
lsof -ti :8000 | xargs kill -9 2>/dev/null
sleep 1
# 启动后端
echo "🐍 启动 Django 后端 (端口 8000)..."
cd /home/node/.openclaw/workspace/flying-hero/projects/monitoring-website/code/backend
source venv/bin/activate
python manage.py runserver 0.0.0.0:8000 &
BACKEND_PID=$!
sleep 2
# 启动前端
echo "⚛️ 启动 React 前端 (端口 3000)..."
cd /home/node/.openclaw/workspace/flying-hero/projects/monitoring-website/code/frontend
npm start &
FRONTEND_PID=$!
echo ""
echo "✅ 服务启动完成!"
echo "📊 监控面板http://localhost:3000"
echo "🔧 API 文档http://localhost:8000/api/"
echo ""
echo "PID: 后端=$BACKEND_PID, 前端=$FRONTEND_PID"
echo ""
echo "按 Ctrl+C 停止服务"
# 等待进程
wait