chore: startup scripts one-click launch uvicorn server

This commit is contained in:
2026-07-06 19:31:55 +08:00
parent 367235fb99
commit 233da50554
2 changed files with 8 additions and 2 deletions

View File

@@ -1 +1,5 @@
start "Python Venv" /D "%~dp0" cmd /k "%~dp0.venv\Scripts\activate.bat"
@echo off
cd /d "%~dp0"
call .venv\Scripts\activate.bat
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
pause

View File

@@ -1 +1,3 @@
Start-Process -WindowStyle Normal -FilePath "powershell" -ArgumentList "-NoExit", "-Command", "& '.\.venv\Scripts\Activate.ps1'"
Set-Location $PSScriptRoot
& .\.venv\Scripts\Activate.ps1
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload