mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-05 22:50:17 +00:00
3d6dfae01b
- Updated docker-compose.yml to mount data directory for improved file access. - Implemented a unified cache generation function in engine.py to streamline cache creation for blog posts, sidenotes, outlines, quotes, connections, and terms. - Replaced individual cache extraction functions with a single MetadataCache class for cleaner access to cached data. - Modified prebuild_cache.py to utilize the new unified cache function, ensuring all cache files are generated in a single sweep. - Enhanced outlines.html template to simplify anchor URL generation for headings.
14 lines
538 B
YAML
14 lines
538 B
YAML
services:
|
|
web:
|
|
build: .
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- FLASK_ENV=development
|
|
- DISABLE_ANALYTICS=true
|
|
restart: unless-stopped
|
|
# Use single worker for local development with markdown file watching
|
|
command: ["uv", "run", "gunicorn", "--bind", "0.0.0.0:8000", "--worker-class", "gevent", "--workers", "1", "--worker-connections", "1000", "--timeout", "60", "--reload", "--reload-extra-file", "./data", "--reload-extra-file", "./templates", "engine:app"]
|