-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart-all.bat
More file actions
70 lines (61 loc) · 1.58 KB
/
start-all.bat
File metadata and controls
70 lines (61 loc) · 1.58 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
@echo off
REM ACE-Step UI — build frontend and start the unified server (Windows)
setlocal
echo ==================================
echo ACE-Step UI
echo ==================================
echo.
REM Check dependencies
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 Binary auto-detection hint
if exist "bin\ace-lm.exe" (
echo acestep.cpp binaries: bin\ OK
) else (
echo Note: No acestep.cpp binaries found in bin\
echo Run build.bat to build them, or set ACESTEP_BIN_DIR in .env
echo The UI will still start; music generation needs the binaries.
echo.
)
REM Build frontend
echo Building frontend...
call npm run build
if %ERRORLEVEL% NEQ 0 (
echo Error: frontend build failed.
pause
exit /b 1
)
echo Frontend built OK
echo.
REM Start unified server in new window
echo Starting server...
start "ACE-Step UI" cmd /k "cd /d "%~dp0server" && npm run dev"
REM Wait for server to start
timeout /t 5 /nobreak >nul
echo.
echo ==================================
echo ACE-Step UI running!
echo ==================================
echo.
echo UI + API : http://localhost:3001
echo.
echo Close the server window to stop.
echo.
echo ==================================
echo.
echo Opening browser...
timeout /t 2 /nobreak >nul
start http://localhost:3001
echo.
echo Press any key to close this window (server keeps running)
pause >nul