Difference between revisions of "PYTHONAPP"

From rbachwiki
Jump to navigation Jump to search
Line 10: Line 10:
  sudo apt update
  sudo apt update
  sudo apt install certbot python3-certbot-apache -y
  sudo apt install certbot python3-certbot-apache -y
# Install Python venv if needed:
sudo apt install python3-venv python3-pip -y
== 2 Create the App Directory ==
sudo mkdir -p /var/www/html/myapp
cd /var/www/html/myapp


pip install flask pymysql cryptography gunicorn DBUtils
pip install flask pymysql cryptography gunicorn DBUtils

Revision as of 17:06, 21 April 2026

Karaoke app Deployment

1 Prerequisite Check

  1. ssh into the server
  2. verify what is installed
apache2 -v
python3 --version
mysql --version
which certbot
  1. if certbot isn't installed
sudo apt update
sudo apt install certbot python3-certbot-apache -y
  1. Install Python venv if needed:
sudo apt install python3-venv python3-pip -y

2 Create the App Directory

sudo mkdir -p /var/www/html/myapp
cd /var/www/html/myapp


pip install flask pymysql cryptography gunicorn DBUtils