-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstart.bat
More file actions
executable file
·48 lines (41 loc) · 1.13 KB
/
start.bat
File metadata and controls
executable file
·48 lines (41 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@echo off
REM Comic Generator Startup Script for Windows
echo 🎨 漫画分镜生成器启动脚本
echo ================================
REM Check if uv is installed
uv --version >nul 2>&1
if errorlevel 1 (
echo ❌ 错误: 未找到 uv,请先安装 uv
echo 💡 Windows PowerShell 安装: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
pause
exit /b 1
)
REM Sync dependencies
echo 📦 检查并安装依赖...
cd backend
call uv sync
if errorlevel 1 (
echo ❌ 依赖安装失败
cd ..
pause
exit /b 1
)
cd ..
REM Start backend server
echo 🚀 启动后端服务...
start "Comic Backend" cmd /k "cd backend && uv run app.py"
timeout /t 2 /nobreak >nul
REM Start frontend server
echo 🚀 启动前端服务...
start "Comic Frontend" cmd /k "python -m http.server 8000"
echo.
echo ================================
echo ✨ 服务已全部启动!
echo 🌐 请在浏览器中打开: http://localhost:8000
echo.
echo 📍 后端地址: http://localhost:5003
echo 📍 前端地址: http://localhost:8000
echo.
echo 关闭命令行窗口即可停止服务
echo ================================
pause