init
This commit is contained in:
commit
fe636432d0
154 files changed
+30381
No files matched your search
@@ -0,0 +1,22 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$projectRoot = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$pythonExe = Join-Path $projectRoot 'python\python.exe'
|
||||
$backendDir = Join-Path $projectRoot 'backend'
|
||||
|
||||
if (-not (Test-Path $pythonExe)) {
|
||||
throw "Project Python not found: $pythonExe"
|
||||
}
|
||||
|
||||
if (-not (Test-Path (Join-Path $backendDir '.env'))) {
|
||||
throw "Backend config not found: $backendDir\.env"
|
||||
}
|
||||
|
||||
Push-Location $backendDir
|
||||
try {
|
||||
& $pythonExe -m alembic upgrade head
|
||||
& $pythonExe -m uvicorn app.main:app --host 127.0.0.1 --port 8000
|
||||
}
|
||||
finally {
|
||||
Pop-Location
|
||||
}
|
||||
Reference in new issue
Block a user