Flask from command line
Revision as of 21:58, 18 September 2021 by Andr3w (talk | contribs) (→Linux: Running flask for production under uwsgi)
Windows: Install python and flask, run the first program
Get python flask going on windows:
Linux: Install flask, tunnel into debug version
Get python flask going on a remote linux server:
Linux: Running flask for production under uwsgi
Your service will be more reliable if you run using uwsgi:
Install uwsgi
and uwsgi-plugin-python3
Change /etc/nginx/sites-enabled/tmp.progzoo.net
to
server { server_name tmp.progzoo.net; location / { include uwsgi_params; uwsgi_pass unix:/tmp/project1.sock; } location /static { alias /home/andrew/project1/static; } }