问题描述:
gunicorn -w 2 -b 10.70.12.102:5000 app:app&
部署完flask代码后,退出xshell 请求发送不过去,报500错误,xshell连接状态下正常请求。
解决办法:
- 添加参数
gunicorn -w 2 -b 10.70.12.102:5000 app:app -D
- 使用supervisor管理gunicorn
问题描述:
gunicorn -w 2 -b 10.70.12.102:5000 app:app&
部署完flask代码后,退出xshell 请求发送不过去,报500错误,xshell连接状态下正常请求。
解决办法:
gunicorn -w 2 -b 10.70.12.102:5000 app:app -D