chore: startup scripts one-click launch uvicorn server
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user