Add start-dev.ps1 script to automate the launch of development services in the pycall conda environment. The script initiates the API, Web, and Engine services in separate PowerShell windows, enhancing the development workflow.

This commit is contained in:
Xin Wang
2026-02-28 11:26:52 +08:00
parent 8b59569b99
commit c4c473105e

16
scripts/start-dev.ps1 Normal file
View File

@@ -0,0 +1,16 @@
# Start all development services in pycall conda environment
# Run: .\start-dev.ps1
$projectRoot = "C:\Users\52943\Code\AI-VideoAssistant-Project\AI-VideoAssistant"
$condaEnv = "pycall"
# Start API service
Start-Process powershell -ArgumentList "-NoExit", "-Command", "conda activate $condaEnv; cd '$projectRoot\api'; uvicorn app.main:app --port 8100" -WindowStyle Normal
# Start Web service
Start-Process powershell -ArgumentList "-NoExit", "-Command", "conda activate $condaEnv; cd '$projectRoot\web'; npm run dev" -WindowStyle Normal
# Start Engine service
Start-Process powershell -ArgumentList "-NoExit", "-Command", "conda activate $condaEnv; cd '$projectRoot\engine'; uvicorn app.main:app" -WindowStyle Normal
Write-Host "All services started in separate windows with pycall conda environment"