Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Latest commit

 

History

History
32 lines (23 loc) · 888 Bytes

debugging.md

File metadata and controls

32 lines (23 loc) · 888 Bytes

Occurrence Broker

Manually check specify_cache

Local debugging of flask app

  • Set up python virtual environment for the project
  • Connect IDE to venv python interpreter
  • Run flask at command prompt
  • Assuming that the project directory is
export PROJDIR=~/git/lmtrex
cd $PROJDIR/lmtrex/flask_app/broker/

export PYTHONPATH=$PROJECT_DIR
export FLASK_ENV=development
export FLASK_APP=routes
flask run
  • Connect to localhost in browser.
  • Flask will auto-update on file save.
  • Refresh browser after changes