python 部署 flask 应用 - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
安装 gunicorn 库,
pip3 install gunicorn
然后输入以下命令(比如你的入口文件为 main.py,后面app为名称,可以随便取):
gunicorn -w 4 -b 0.0.0.0:8000 main:app