Read more

For more information on how to secure your Flask deployment more effectively in Apache and WSGI by creating shell-less users that can only run the Flask app, see http://www.subdimension.co.uk/2012/04/24/Deploying_Flask_to_Apache.html.

This guide has more examples for CentOS systems along with Lighttpd and Gunicorn all through Ansible https://www.zufallsheld.de/2014/11/19/deploying-lighttpd-your-flask-apps-gunicorn-and-supervisor-with-ansible-on-centos/.

Get Learning Flask Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.