Stop currently running gunicorn service
sudo systemctl stop bdmparse
Activate virtual environment for python packages
cd back-end
source venv/bin/activate
You should see (venv)
as the prompt
Start gunicorn manually with error and access logs being printed to terminal
gunicorn --access-logfile - --error-logfile - --workers=8 -b 127.0.0.1:5000 api:app
When done debugging, restart gunicorn service
sudo systemctl start bdmparse
and ensure service is running
sudo systemctl status bdmparse
Deactivate virtual environment
deactivate