Files
cursornew2026/backend/start.sh
ccdojox-crypto 9e2333c90c CursorPro 后台管理系统 v1.0
功能:
- 激活码管理 (Pro/Auto 两种类型)
- 账号池管理
- 设备绑定记录
- 使用日志
- 搜索/筛选功能
- 禁用/启用功能 (支持退款参考)
- 全局设置 (换号间隔、额度消耗等)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 20:54:44 +08:00

39 lines
1.1 KiB
Bash
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 "╔═══════════════════════════════════════════════════════════╗"
echo "║ CursorPro 后台管理系统 ║"
echo "╚═══════════════════════════════════════════════════════════╝"
echo ""
# 检查 Python
if ! command -v python3 &> /dev/null; then
echo "[错误] 未找到 Python请先安装 Python 3.8+"
exit 1
fi
# 检查虚拟环境
if [ ! -d "venv" ]; then
echo "[信息] 创建虚拟环境..."
python3 -m venv venv
fi
# 激活虚拟环境
source venv/bin/activate
# 安装依赖
echo "[信息] 检查依赖..."
pip install -r requirements.txt -q
# 检查 .env 文件
if [ ! -f ".env" ]; then
echo "[信息] 创建 .env 配置文件..."
cp .env.example .env
echo "[警告] 请编辑 .env 文件配置数据库连接!"
fi
echo ""
echo "[信息] 启动服务..."
echo ""
python run.py