feat: using asgi + uvicorn + gunicorn

This commit is contained in:
2025-09-19 10:15:25 +08:00
parent e3fa701f9f
commit b36c8183f2
5 changed files with 336 additions and 14 deletions
+4 -10
View File
@@ -26,16 +26,10 @@ pnpm run build
# 后端
后端使用 Django 框架开发,使用方法如下
后端使用 Django 框架开发,搭配 asgi + uvicorn + gunicorn 食用,运行`src/backend/start.sh`即可自动构建部署
## 安装软件包
若 venv 环境创建失败,请手动输入
```
pip install -r requirements.txt
```
## 部署
```
python manage.py runserver
```shell
apt install python3-venv
```