9 lines
251 B
Bash
Executable File
9 lines
251 B
Bash
Executable File
#!/bin/bash
|
|
# 启动开发环境
|
|
|
|
echo "启动后端服务..."
|
|
cd backend
|
|
source venv/bin/activate 2>/dev/null || python -m venv venv && source venv/bin/activate
|
|
pip install -r requirements.txt
|
|
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
|