扫码登录,获取cookies
This commit is contained in:
24
test_auth_service.bat
Normal file
24
test_auth_service.bat
Normal file
@@ -0,0 +1,24 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
echo 测试启动 Auth Service...
|
||||
echo.
|
||||
|
||||
cd backend
|
||||
if exist venv\Scripts\activate.bat (
|
||||
call venv\Scripts\activate.bat
|
||||
) else (
|
||||
echo 虚拟环境不存在,正在创建...
|
||||
python -m venv venv
|
||||
call venv\Scripts\activate.bat
|
||||
pip install -r requirements.txt
|
||||
)
|
||||
|
||||
echo.
|
||||
echo 设置环境变量...
|
||||
set PYTHONPATH=%CD%
|
||||
|
||||
echo.
|
||||
echo 启动 Auth Service (端口 8001)...
|
||||
python -m uvicorn auth_service.app.main:app --host 0.0.0.0 --port 8001 --reload
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user