-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.ps1
More file actions
37 lines (30 loc) · 968 Bytes
/
Copy pathstart.ps1
File metadata and controls
37 lines (30 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
param(
[switch]$WithDesktop
)
$ErrorActionPreference = "Stop"
$repo = Split-Path -Parent $MyInvocation.MyCommand.Path
function Start-BindhubService {
param(
[string]$Name,
[string]$Command
)
Write-Host "Starting $Name..."
Start-Process powershell -ArgumentList @(
"-NoExit",
"-ExecutionPolicy", "Bypass",
"-Command", "Set-Location '$repo'; $Command"
) | Out-Null
}
Start-BindhubService "Bindhub API" "pnpm dev:api"
Start-BindhubService "Bindhub dashboard" "pnpm dev:web"
Start-BindhubService "Bindhub public site" "pnpm dev:site"
if ($WithDesktop) {
Start-BindhubService "Bindhub desktop renderer" "pnpm dev:desktop"
}
Write-Host ""
Write-Host "Bindhub local stack started."
Write-Host "API: http://127.0.0.1:3001"
Write-Host "Dashboard: http://localhost:3000"
Write-Host "Site/docs: http://localhost:3002"
Write-Host ""
Write-Host "Use -WithDesktop to also start the desktop renderer."