- Install Python3, Pip3, and Venv
sudo apt install python3 python3-pip python3-venv
- Create a Python3 venv in the repo folder
python3 -m venv .venv
- Activate the venv.
source .venv/bin/activate
- Install project requirements
pip3 install -r requirements.txt
gunicorn wsgi:app
- Copy the gasbox.service file to /etc/systemd/system/
cp gasbox.service /etc/systemd/system/
- Copy the nginx site file to /etc/nginx/sites-available
- Link the nginx site file to /etc/nginx/sites-enabled