FlaskAppDeployment: Difference between revisions
Jump to navigation
Jump to search
| Line 16: | Line 16: | ||
Already installed, skipping this section. | Already installed, skipping this section. | ||
= | = Create Python Virtual Enviroment (Venv) for Flask = | ||
<source> | <source> | ||
| Line 23: | Line 23: | ||
$ cd flask/reddit-oauth2/ | $ cd flask/reddit-oauth2/ | ||
$ python3 -m venv flask-venv | $ python3 -m venv flask-venv | ||
</source> | |||
= Install Flask = | |||
<source> | |||
$ source flask-venv/bin/activate | $ source flask-venv/bin/activate | ||
</source> | </source> | ||
Revision as of 21:02, 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 apache2Already installed - skipping this section.
HTTP
TLS
Install Python / PIP
$ python --version
$ pip --versionAlready installed, skipping this section.
Create Python Virtual Enviroment (Venv) for Flask
$ cd /opt/cryptopunk
$ mkdir -p flask/reddit-oauth2/
$ cd flask/reddit-oauth2/
$ python3 -m venv flask-venvInstall Flask
$ source flask-venv/bin/activate