为什么我应该使用带烧瓶的uwsgi?

时间:2016-10-04 11:20:21

标签: python nginx flask uwsgi

例如,我有一些基于Flask的Web应用程序在5000端口上运行,而一些前端Web服务器(nginx)在80端口上运行。

为什么我应该配置和使用uWSGI模块而不是简单:

$ python ./app.py

location /api {
    proxy_pass http://localhost:5000
}

0 个答案:

没有答案
相关问题