fix: Applied fix for name, the oracle team sharing, sentinel client list visibility
This commit is contained in:
28
scripts/start_velocity_backend_local.ps1
Normal file
28
scripts/start_velocity_backend_local.ps1
Normal file
@@ -0,0 +1,28 @@
|
||||
param(
|
||||
[string]$RepoRoot = "F:\Workin In Progress\DESINEURON\GITLAB\Project_Velocity",
|
||||
[int]$Port = 8001
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$env:VELOCITY_ENV_FILE = Join-Path $RepoRoot ".local-dev\backend\.env.local"
|
||||
if (-not (Test-Path $env:VELOCITY_ENV_FILE)) {
|
||||
throw "Missing local backend env file at $($env:VELOCITY_ENV_FILE). Import a local bundle first."
|
||||
}
|
||||
|
||||
$pythonExe = Join-Path $RepoRoot ".venv\Scripts\python.exe"
|
||||
if (-not (Test-Path $pythonExe)) {
|
||||
$pythonExe = Join-Path $RepoRoot "venv\Scripts\python.exe"
|
||||
}
|
||||
|
||||
if (-not (Test-Path $pythonExe)) {
|
||||
$pythonExe = "python"
|
||||
}
|
||||
|
||||
Push-Location $RepoRoot
|
||||
try {
|
||||
& $pythonExe -m uvicorn backend.main:app --reload --host 127.0.0.1 --port $Port
|
||||
}
|
||||
finally {
|
||||
Pop-Location
|
||||
}
|
||||
Reference in New Issue
Block a user