mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-05 22:50:17 +00:00
f50dad4574
- Replace gunicorn/gevent with uvicorn for ASGI support - Add asgiref to wrap Flask WSGI app for uvicorn compatibility - Enable auto-reload in docker-compose for development - Add current_path to all content render_template calls - Simplify breadcrumb template to exclude current page - Only show breadcrumbs for nested paths (> 1 segment) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
476 B
YAML
16 lines
476 B
YAML
services:
|
|
web:
|
|
build: .
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./tuftecms:/app/tuftecms
|
|
- ./engine.py:/app/engine.py
|
|
environment:
|
|
- FLASK_ENV=development
|
|
- DISABLE_ANALYTICS=true
|
|
restart: unless-stopped
|
|
# Use uvicorn with auto-reload for development
|
|
command: ["uvicorn", "engine:app", "--host", "0.0.0.0", "--port", "8000", "--reload", "--reload-dir", "/app/tuftecms", "--reload-dir", "/app/data"]
|