fix: bat uses dotnet directly, doctor frontend gets port 5174

This commit is contained in:
MingNian
2026-05-21 15:20:55 +08:00
parent 51c7c89ec5
commit 3ef25e734f
9 changed files with 358 additions and 83 deletions

View File

@@ -6,7 +6,6 @@ echo ==========================================
echo HealthManager Dev Environment
echo ==========================================
set "DOTNET=C:\Program Files\dotnet\dotnet.exe"
set "REDIS=C:\Program Files\Redis\redis-server.exe"
set "PG_DATA=D:\APP\data\pgdata"
set "PG_BIN=D:\PostgreSQL\18\pgsql\bin"
@@ -48,15 +47,11 @@ if errorlevel 1 (
echo.
echo [4/6] Starting Backend API...
cd /d "%~dp0backend"
if exist "%DOTNET%" (
start "HealthManager API" "%DOTNET%" run --project src\HealthManager.WebApi --urls "http://localhost:5000" --environment Development
echo Backend API starting (http://localhost:5000)
echo Swagger: http://localhost:5000/swagger
echo Waiting 15s for backend to boot...
timeout /t 15 /nobreak >nul
) else (
echo [ERROR] .NET SDK not found at %DOTNET%
)
start "HealthManager API" dotnet run --project src\HealthManager.WebApi --urls "http://localhost:5000" --environment Development
echo Backend API starting (http://localhost:5000)
echo Swagger: http://localhost:5000/swagger
echo Waiting 15s for backend to boot...
timeout /t 15 /nobreak >nul
echo.
echo [5/6] Starting Patient Frontend...