first commit

This commit is contained in:
rayd1o
2026-03-05 11:46:58 +08:00
commit e7033775d8
20657 changed files with 1988940 additions and 0 deletions

38
stop.sh Executable file
View File

@@ -0,0 +1,38 @@
#!/bin/bash
# Planet 停止脚本
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
echo "🛑 停止智能星球计划..."
# 停止后端服务
if pgrep -f "uvicorn" > /dev/null; then
echo "🔧 停止后端服务..."
pkill -f "uvicorn" || true
echo "✅ 后端服务已停止"
else
echo " 后端服务未运行"
fi
# 停止前端服务
if pgrep -f "vite" > /dev/null; then
echo "🌐 停止前端服务..."
pkill -f "vite" || true
echo "✅ 前端服务已停止"
else
echo " 前端服务未运行"
fi
# 停止 Docker 容器
echo "🗄️ 停止数据库容器..."
if command -v docker-compose &> /dev/null; then
docker-compose stop postgres redis || true
else
docker compose stop postgres redis || true
fi
echo ""
echo "✅ 所有服务已停止"