-
Create Virtual Environment
python3 -m venv venv
-
Activate Virtual Environment
source venv/bin/activate
-
Install dependencies
pip3 install -r requirements.txt
-
Run web app
-
When developing (Use Flask's built-in web server):
python3 application.py
-
In production (Use Gunicorn):
./start-app.sh
-
-
Access web app
Open http://localhost:5003
in browser
-
Debug web app
-
Put breakpoint in code:
import pdb; pdb.set_trace()
-
Check logs:
more myapp.log
-
-
Stop web app
-
If running directly using python interpreter
Hit Cntrl+C
-
If running using Gunicorn
./stop-app.sh
-