Files
openclaw-monitor/start.sh
flying-hero 4be901b1b0 Complete backend API and deployment guide
- Django REST API with lobster endpoints
- API views: list, detail, memory, tools
- Deployment guide with instructions
- Startup script for easy launch
- Requirements.txt for dependencies
- API URL routing
2026-04-01 20:52:03 +08:00

32 lines
590 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 "📡 启动 Django 后端..."
cd code/backend
python3 manage.py runserver 0.0.0.0:8000 &
BACKEND_PID=$!
# 等待后端启动
sleep 3
# 启动前端
echo "🎨 启动前端服务..."
cd ../frontend
python3 -m http.server 3000 &
FRONTEND_PID=$!
echo ""
echo "✅ 监控中心已启动!"
echo ""
echo "访问地址:"
echo " 前端http://localhost:3000"
echo " 后端 API: http://localhost:8000/api/"
echo ""
echo "按 Ctrl+C 停止服务"
# 等待进程
wait