PYTHONAPP

From rbachwiki
Revision as of 17:08, 21 April 2026 by Bacchas (talk | contribs)
Jump to navigation Jump to search

Karaoke app Deployment

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

Create the App Directory

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

Upload App Files

  1. Upload the .env file (hidden, so it won't be picked up by scp -r)

If you don't see .env in Finder, press Cmd+Shift+. to toggle hidden files.

pip install flask pymysql cryptography gunicorn DBUtils