khis middleware api
- Install Python 3.9+ or any later version
- Move into the project folder and create a virtual env
python -m venv env
. env/bin/activate
pip install -r requirements.txt
. /path/to/env/bin/activate # Activate your virtual environment
cd /path/to/project/
nohup gunicorn --bind 0.0.0.0:8000 DITApi.wsgi:application > /path/to/your/log/file/logfile.log 2>&1 & # run application in the background using nohup and monitor logs
sudo ufw allow 8000