Bupt-air 后台
Flask + MySQL
Installation
fork项目至本地目录并随时更新进度.
配置Python3.6环境, 推荐使用Miniconda.
Build Setup
cd bupt-air-backend
# 安装依赖
pip install -r requirements.txt
# 测试数据库连接情况
python model.py
# 运行开发服务器
export FLASK_ENV=development
flask run
生产环境部署
cd bupt-air-backend
# gunicorn
gunicorn --threads 16 app:app
# Nginx
server {
listen 80;
server_name example.org;
access_log /var/log/nginx/exa
2022-03-13 19:31:14
15KB
Python
1