【发布时间】:2018-06-26 00:39:04
【问题描述】:
我正在尝试使用以下代码在 ec2 实例上使用 gunicorn 启动 swagger 服务器:
我试过了:
gunicorn -w 4 -b 0.0.0.0:8080 -p pidfile -D swagger_server:app
还有这个:
gunicorn -w 4 -b 0.0.0.0:8080 -p pidfile -D "python3 -m swagger_server":app
甚至这个:
gunicorn -w 4 -b 0.0.0.0:8080 -p pidfile -D __main__:app
我怎样才能让它工作?
有效的原始python代码:python3 -m swagger_server
【问题讨论】:
标签: python flask swagger gunicorn