12 lines
405 B
PowerShell
12 lines
405 B
PowerShell
$env:ZCLAW_DATABASE_URL = "postgres://postgres:123123@localhost:5432/zclaw"
|
|
$env:RUST_LOG = "info"
|
|
$proc = Start-Process -FilePath "target\debug\zclaw-saas.exe" -PassThru -WindowStyle Minimized
|
|
Start-Sleep -Seconds 3
|
|
if ($proc.HasExited) {
|
|
Write-Host "[ERROR] zclaw-saas exited with code: $($proc.ExitCode)"
|
|
exit 1
|
|
} else {
|
|
Write-Host "[OK] zclaw-saas started (PID: $($proc.Id))"
|
|
exit 0
|
|
}
|