-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.ps1
More file actions
22 lines (18 loc) · 946 Bytes
/
Copy pathstart.ps1
File metadata and controls
22 lines (18 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ErrorActionPreference = "Stop"
function Start-Service{
param (
[string]$Name,
[string]$Command,
[int]$DelaySeconds = 3
)
Write-Host "Starting $Name ..." -ForegroundColor Green
Start-Process powershell -ArgumentList "-NoExit", "-Command", $Command
Start-Sleep -Seconds $DelaySeconds
}
Start-Service "plan-service" "cd backend/services/plan-service; .\venv\Scripts\python.exe -m uvicorn src.main:app --host 0.0.0.0 --port 3003 --reload"
Start-Service "template-service" "cd backend/services/template-service; .\venv\Scripts\python.exe -m uvicorn src.main:app --host 0.0.0.0 --port 3002 --reload"
Start-Service "redis-docker" "docker start my-redis"
Start-Service "auth-service" "cd backend/services/auth-service; npm run dev"
Start-Service "api-gateway" "cd backend/api-gateway; npm run dev"
Start-Service "frontend" "cd frontend; npm run dev"
Write-Host "All service started" -ForegroundColor Green