Block 157: Deployment Concepts (Intro)
Understand how Python projects are deployed in practice.
Concepts
- Flask/FastAPI with gunicorn/uvicorn for production
- Docker concept: containerizing your app
- Environment variables for configuration (python-dotenv)
- CI/CD concept: GitHub Actions basics
Code Examples
See exercise below.
Exercise
Run your Flask/FastAPI app with uvicorn instead of the dev server. Test that it works. Add a .env file for configuration (API keys, database path). Load with python-dotenv.
Homework
Research Docker and write a 150-word summary of: what it is, why it's useful for Python projects, and one limitation.