16 lines
418 B
PowerShell
16 lines
418 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|||
|
|
|
||
|
|
Set-Location $PSScriptRoot
|
||
|
|
|
||
|
|
$env:DEV_MODE = '1'
|
||
|
|
if (-not $env:OWNER_EMAIL) {
|
||
|
|
$env:OWNER_EMAIL = 'info@goodwalk.co.nz'
|
||
|
|
}
|
||
|
|
|
||
|
|
$python = Join-Path $PSScriptRoot '.venv\Scripts\python.exe'
|
||
|
|
if (-not (Test-Path $python)) {
|
||
|
|
throw "Missing virtualenv interpreter at $python. Create it first with: py -3.14 -m venv .venv"
|
||
|
|
}
|
||
|
|
|
||
|
|
& $python -m uvicorn main:app --host 127.0.0.1 --port 8000 --reload
|