Run the checkbox on the server using uWsgi.
UWsgi configuration
<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 debugging the nginx page, I will show me error 502.
The whole Flask error tracking error I can see in the uwsgi error log.
UPDATE
Find old question nginx + uwsgi + flask - disable custom error pages no answer
Jafte source share