FrontPage 

TB Wiki

Login

Regression Test

Expected HTML for page "FlaskResearch"


expected html
nothing
t1Here are some articles on flask:t
2<p>
3How to install flash/gunicorn on Ubuntu 18.04 and use nginx as a reverse proxy:
4<ul><li><a href="https://linoxide.com/linux-how-to/install-flask-python-ubuntu/">https://linoxide.com/linux-how-to/install-flask-python-ubuntu/</a>
5<ul><li>also has info on interacting with the firewall and setting up a systemd unit file
6</ul>
7</ul>
8<p>
9<h1><a name="Notes">Notes</a>
10<span align=right class="section_edit_link">[<a href="/tbwiki/FlaskResearch?action=edit&section=Notes">edit section</a>]</font></span>
11</h1>
12flask has a built-in web server, but it does not scale.
13<p>
14However a flask app IS a WSGI-compatible app.
15<p>
16See <a href="https://flask.palletsprojects.com/en/1.1.x/deploying/mod_wsgi/">https://flask.palletsprojects.com/en/1.1.x/deploying/mod_wsgi/</a>
17for how to install a flash application with Apache and mod_wsgi
18(Apache is what I have on birdcloud.org)
19<p>
20See <a href="https://flask.palletsprojects.com/en/1.1.x/deploying/#deployment">https://flask.palletsprojects.com/en/1.1.x/deploying/#deployment</a>
21for other deployment options.
22<p>
23<h1><a name="Using_mod_wsgi_with_apache">Using mod_wsgi with apache</a>
24<span align=right class="section_edit_link">[<a href="/tbwiki/FlaskResearch?action=edit&section=Using_mod_wsgi_with_apache">edit section</a>]</font></span>
25</h1>
26See <a href="https://www.howtoforge.com/tutorial/how-to-run-python-scripts-with-apache-and-mod_wsgi-on-ubuntu-18-04/">https://www.howtoforge.com/tutorial/how-to-run-python-scripts-with-apache-and-mod_wsgi-on-ubuntu-18-04/</a>
27<p>
28Here's what I did on birdcloud:
29<ul><li>$ sudo apt-get install libapache2-mod-wsgi -y
30<li>$ vi /var/www/owncloud/wsgy.py (see script for contents)
31<li>$ chown www-data:www-data /var/www/owncloud/wsgy.py
32<li>$ chmod 755 /var/www/owncloud/wsgy.py
33<li>$ echo "WSGIScriptAlias /wsgi /var/www/owncloud/wsgy.py" &gt;/etc/apache2/conf-available/wsgi.conf
34<li>$ a2enconf wsgi
35<ul><li>(only need to run this once, to enable wsgi in apache configuration)
36</ul><li>$ systemctl restart apache2
37<ul><li>(need to run this every time you change the wsgi.conf file)
38</ul><li>$ browser <a href="https://birdcloud.org/wsgi">https://birdcloud.org/wsgi</a>
39</ul>
40<p>
41I made another script /var/www/owncloud/test_wsgi.py that mirrors
42the actions of /var/lib/cgi-bin/test_cgi.py
43<p>
44I did this in order to test responsiveness of cgi vs wsgi.
45<ul><li>test.cgi loads in about 40 milliseconds
46<li>test_wsgi loads in about 9 milliseconds
47and that's with wsgi.mod_wsgi.script_reloading=1
48</ul>
49<p>
50<h2><a name="putting_mod_wsgi_into_daemon_mode_to_avoid_app_reload">putting mod_wsgi into daemon mode to avoid app reload</a>
51<span align=right class="section_edit_link">[<a href="/tbwiki/FlaskResearch?action=edit&section=putting_mod_wsgi_into_daemon_mode_to_avoid_app_reload">edit section</a>]</font></span>
52</h2>
53See this information:
54<p>
55<a href="https://stackoverflow.com/questions/766601/mod-wsgi-force-reload-modules">https://stackoverflow.com/questions/766601/mod-wsgi-force-reload-modules</a>
56<p>
57<a href="https://modwsgi.readthedocs.io/en/develop/user-guides/reloading-source-code.html">https://modwsgi.readthedocs.io/en/develop/user-guides/reloading-source-code.html</a>
58<p>
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op

Differences for page "FlaskResearch"


expected html
generated html
t No Differences Found t No Differences Found 
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op

Update saved output

Back to diff page

Return to Regression_Test page
TBWiki engine 1.9.3 by Tim Bird