FlaskResearch

Here are some articles on flask:

How to install flash/gunicorn on Ubuntu 18.04 and use nginx as a reverse proxy:

Notes [edit section]

flask has a built-in web server, but it does not scale.

However a flask app IS a WSGI-compatible app.

See https://flask.palletsprojects.com/en/1.1.x/deploying/mod_wsgi/ for how to install a flash application with Apache and mod_wsgi (Apache is what I have on birdcloud.org)

See https://flask.palletsprojects.com/en/1.1.x/deploying/#deployment for other deployment options.

Using mod_wsgi with apache [edit section]

See https://www.howtoforge.com/tutorial/how-to-run-python-scripts-with-apache-and-mod_wsgi-on-ubuntu-18-04/

Here's what I did on birdcloud:

I made another script /var/www/owncloud/test_wsgi.py that mirrors the actions of /var/lib/cgi-bin/test_cgi.py

I did this in order to test responsiveness of cgi vs wsgi.

putting mod_wsgi into daemon mode to avoid app reload [edit section]

See this information:

https://stackoverflow.com/questions/766601/mod-wsgi-force-reload-modules

https://modwsgi.readthedocs.io/en/develop/user-guides/reloading-source-code.html