Run Flask on server with uWsgi.
uWsgi config
<uwsgi>
<socket>/tmp/flask.sock</socket>
<pythonpath>/home/reweb/flask/</pythonpath>
<module>publicist:app</module>
<plugins>python27</plugins>
<uid>reweb</uid>
<touch-reload>/home/reweb/reload</touch-reload>
</uwsgi>
nginx config
upstream flask_serv {
server unix:/tmp/flask.sock;
}
server {
listen 80;
server_name some-domain.com;
access_log /home/reweb/log/nginx-access.log;
error_log /home/reweb/log/nginx-error.log;
location / {
uwsgi_pass flask_serv;
include uwsgi_params;
}
}
But instead of debugger page nginx show me 502 error.
All Flask error traceback i can see in uwsgi error log.
UPDATE
Find old question nginx + uwsgi + flask - disabling custom error pages there is no answer