Files
assist/快速启动.bat
2025-09-16 17:05:50 +01:00

42 lines
948 B
Batchfile
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.
@echo off
chcp 65001
echo ========================================
echo 智能TSP助手 - 快速启动脚本
echo ========================================
echo.
echo [1/4] 检查Python环境...
python --version
if %errorlevel% neq 0 (
echo 错误: 未找到Python环境请先安装Python 3.8+
pause
exit /b 1
)
echo [2/4] 检查必要目录...
if not exist "logs" mkdir logs
if not exist "data" mkdir data
echo 目录检查完成
echo [3/4] 初始化数据库...
python fix_database_schema.py
if %errorlevel% neq 0 (
echo 警告: 数据库初始化可能有问题,请检查配置
)
echo [4/4] 启动智能TSP助手...
echo.
echo 正在启动服务,请稍候...
echo 启动成功后请访问: http://localhost:5000
echo 按 Ctrl+C 停止服务
echo.
echo 尝试启动完整版...
python start_dashboard.py
if %errorlevel% neq 0 (
echo 完整版启动失败,尝试简化版...
python simple_start.py
)
pause