Deploying Flask applications on LEMP

602 views
0

How do I deploy my Flask application with a LEMP stack?

0

A common way to deploy Python applications using Nginx is with uWSGI. You would start the application with the necessary configuration, and then just pass Nginx requests to the uWSGI.

location @myapp {
   include uwsgi_params;
   uwsgi_pass unix:/tmp/myapp.sock;
}

Nginx and uWSGI configuration for Flask app deployment