[TOC]
WARNING: Do not use the development server in a production environment. Use a production WSGI server
但是使用以上代码部署之后,提示如下:
遇到这种问题我们可以不用python自带的服务器:
pip install gevent
erving Flask app “report_server” (lazy loading)
- Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
“这个模式用于开发环境调试,部署线上需要使用WSGI替代” ……
2.查了下资料,这个提示的原因是flask需要使用WSGI启动服务,那就是用WSGI呗