forked from fspecii/ace-step-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-all.bat
More file actions
112 lines (96 loc) · 2.83 KB
/
start-all.bat
File metadata and controls
112 lines (96 loc) · 2.83 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
@echo off
REM ACE-Step UI Complete Startup Script for Windows
REM Starts ACE-Step API + Backend + Frontend
setlocal
echo ==================================
echo ACE-Step Complete Startup
echo ==================================
echo.
REM Check if node_modules exists
if not exist "node_modules" (
echo Error: UI dependencies not installed!
echo Please run setup.bat first.
pause
exit /b 1
)
if not exist "server\node_modules" (
echo Error: Server dependencies not installed!
echo Please run setup.bat first.
pause
exit /b 1
)
REM Get ACE-Step path from environment or use default
if "%ACESTEP_PATH%"=="" (
set ACESTEP_PATH=..\ACE-Step-1.5
)
REM Check if ACE-Step exists
if not exist "%ACESTEP_PATH%" (
echo.
echo Warning: ACE-Step not found at %ACESTEP_PATH%
echo.
echo Please set ACESTEP_PATH or place ACE-Step-1.5 next to ace-step-ui
echo Example: set ACESTEP_PATH=C:\ACE-Step-1.5
echo.
pause
exit /b 1
)
REM Detect ACE-Step installation type
set API_COMMAND=
if exist "%ACESTEP_PATH%\python_embeded\python.exe" (
echo [+] Detected Windows Portable Package
set API_COMMAND=python_embeded\python acestep\api_server.py
) else (
echo [+] Detected Standard Installation
set API_COMMAND=uv run acestep-api --port 8001
)
REM Get local IP for LAN access
for /f "tokens=2 delims=:" %%a in ('ipconfig ^| findstr /c:"IPv4"') do (
for /f "tokens=1" %%b in ("%%a") do (
set LOCAL_IP=%%b
)
)
echo.
echo ==================================
echo Starting All Services...
echo ==================================
echo.
REM Start ACE-Step API in new window
echo [1/3] Starting ACE-Step API server...
start "ACE-Step API Server" cmd /k "cd /d "%ACESTEP_PATH%" && %API_COMMAND%"
REM Wait for API to start
echo Waiting for API to initialize...
timeout /t 5 /nobreak >nul
REM Start backend in new window
echo [2/3] Starting backend server...
start "ACE-Step UI Backend" cmd /k "cd /d "%~dp0server" && npm run dev"
REM Wait for backend to start
echo Waiting for backend to start...
timeout /t 3 /nobreak >nul
REM Start frontend in new window
echo [3/3] Starting frontend...
start "ACE-Step UI Frontend" cmd /k "cd /d "%~dp0" && npm run dev"
REM Wait a moment
timeout /t 2 /nobreak >nul
echo.
echo ==================================
echo All Services Running!
echo ==================================
echo.
echo ACE-Step API: http://localhost:8001
echo Backend: http://localhost:3001
echo Frontend: http://localhost:3000
echo.
if defined LOCAL_IP (
echo LAN Access: http://%LOCAL_IP%:3000
echo.
)
echo Close the terminal windows to stop all services.
echo.
echo ==================================
echo.
echo Opening browser...
timeout /t 3 /nobreak >nul
start http://localhost:3000
echo.
echo Press any key to close this window (services will keep running)
pause >nul