返回 Social Auto Upload
start-win.bat
根目录 / start-win.bat
1 @echo off
2 TITLE One-Click Starter for social-auto-upload
3
4 ECHO ==================================================
5 ECHO Starting social-auto-upload Servers...
6 ECHO ==================================================
7 ECHO.
8
9 ECHO [1/2] Starting Python Backend Server in a new window...
10 REM The START command launches a new process.
11 REM The first quoted string "SAU Backend" is the title of the new window.
12 REM cmd /k runs the command and keeps the window open to show logs.
13 START "SAU Backend" cmd /k "python sau_backend.py"
14
15 ECHO [2/2] Starting Vue.js Frontend Server in another new window...
16 START "SAU Frontend" cmd /k "cd sau_frontend && npm run dev -- --host 0.0.0.0"
17
18 ECHO.
19 ECHO ==================================================
20 ECHO Done.
21 ECHO Two new windows have been opened for the backend
22 ECHO and frontend servers. You can monitor logs there.
23 ECHO ==================================================
24 ECHO.
25
26 ECHO This window will close in 10 seconds...
27 timeout /t 10 /nobreak > nul
28
28 lines Plain Text