You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.5 KiB

@echo off
chcp 65001 >nul
title GoFaster 增强版启动脚本
echo ========================================
echo GoFaster 增强版启动脚本
echo ========================================
echo.
echo 选择启动模式:
echo 1. 全栈启动 (前后端)
echo 2. 全栈启动 (调试模式)
echo 3. 全栈启动 (监听模式)
echo 4. 仅启动后端
echo 5. 仅启动前端
echo 6. 增强版启动 (推荐)
echo 7. 强制清理启动
echo.
set /p choice=请输入选择 (1-7):
if "%choice%"=="1" (
echo 启动全栈开发环境...
powershell -ExecutionPolicy Bypass -File "dev-full.ps1"
) else if "%choice%"=="2" (
echo 启动全栈开发环境 (调试模式)...
powershell -ExecutionPolicy Bypass -File "dev-full.ps1" -Debug
) else if "%choice%"=="3" (
echo 启动全栈开发环境 (监听模式)...
powershell -ExecutionPolicy Bypass -File "dev-full.ps1" -Watch
) else if "%choice%"=="4" (
echo 仅启动后端...
powershell -ExecutionPolicy Bypass -File "dev-full.ps1" -BackendOnly
) else if "%choice%"=="5" (
echo 仅启动前端...
powershell -ExecutionPolicy Bypass -File "dev-full.ps1" -FrontendOnly
) else if "%choice%"=="6" (
echo 增强版启动 (推荐)...
powershell -ExecutionPolicy Bypass -File "start-enhanced.ps1"
) else if "%choice%"=="7" (
echo 强制清理启动...
powershell -ExecutionPolicy Bypass -File "start-enhanced.ps1" -ForceClean
) else (
echo 无效选择!
)
echo.
echo 按任意键退出...
pause >nul