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:
16
scripts/start-dev.ps1
Normal file
16
scripts/start-dev.ps1
Normal 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"
|
||||
Reference in New Issue
Block a user