fix: start.bat nested quote parsing with path containing spaces
cmd /k "cd /d "%~dp0" && ..." breaks because inner quotes around %~dp0 close the outer quoted string prematurely when the path contains spaces (D:\Idea Project\...). Fix: remove outer quotes, escape && as ^&^& so it passes through to the new cmd instance.
This commit is contained in:
@@ -30,15 +30,15 @@ echo.
|
|||||||
|
|
||||||
REM ========== Start services ==========
|
REM ========== Start services ==========
|
||||||
echo [1/3] Starting validation service on port 8001...
|
echo [1/3] Starting validation service on port 8001...
|
||||||
start "JRXML-Validator" cmd /k "cd /d "%~dp0" && %PYTHON% -m uvicorn validation_service.main:app --port 8001 --host 0.0.0.0"
|
start "JRXML-Validator" cmd /k cd /d "%~dp0" ^&^& "%PYTHON%" -m uvicorn validation_service.main:app --port 8001 --host 0.0.0.0
|
||||||
timeout /t 3 /nobreak >nul
|
timeout /t 3 /nobreak >nul
|
||||||
|
|
||||||
echo [2/3] Starting backend API on port 8000...
|
echo [2/3] Starting backend API on port 8000...
|
||||||
start "JRXML-API" cmd /k "cd /d "%~dp0" && %PYTHON% -m uvicorn api_server:app --port 8000 --host 0.0.0.0"
|
start "JRXML-API" cmd /k cd /d "%~dp0" ^&^& "%PYTHON%" -m uvicorn api_server:app --port 8000 --host 0.0.0.0
|
||||||
timeout /t 3 /nobreak >nul
|
timeout /t 3 /nobreak >nul
|
||||||
|
|
||||||
echo [3/3] Starting frontend dev server on port 5173...
|
echo [3/3] Starting frontend dev server on port 5173...
|
||||||
start "JRXML-Frontend" cmd /k "cd /d "%~dp0frontend" && npm run dev"
|
start "JRXML-Frontend" cmd /k cd /d "%~dp0frontend" ^&^& npm run dev
|
||||||
timeout /t 3 /nobreak >nul
|
timeout /t 3 /nobreak >nul
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
|
|||||||
Reference in New Issue
Block a user