FlaskAppDeployment: Difference between revisions

From Traxel Wiki
Jump to navigation Jump to search
Line 17: Line 17:


= Install Flask Venv =
= Install Flask Venv =
<code>
$ cd /opt/cryptopunk
$ mkdir -p flask/reddit-oauth2/
$ cd flask/reddit-oauth2/
$ python3 -m venv flask-venv
$ source flask-venv/bin/activate
</code>


= Configure Apache =
= Configure Apache =
= Deploy Hello World =
= Deploy Hello World =

Revision as of 21:00, 14 August 2023

First runthrough based on: https://www.rosehosting.com/blog/how-to-install-flask-on-ubuntu-22-04-with-apache-and-wsgi/

Install Apache

sudo systemctl status apache2

Already installed - skipping this section.

HTTP

TLS

Install Python / PIP

$ python --version
$ pip --version

Already installed, skipping this section.

Install Flask Venv

$ cd /opt/cryptopunk $ mkdir -p flask/reddit-oauth2/ $ cd flask/reddit-oauth2/ $ python3 -m venv flask-venv $ source flask-venv/bin/activate

Configure Apache

Deploy Hello World