mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-05 22:50:17 +00:00
e1245511d6
Added prebuild_cache.py script that generates all site caches (blog posts, sidenotes, outlines, quotes, connections, terms) as JSON files during Docker build. Modified engine.py to load pre-built caches on startup, eliminating the 30-40 second cache preload delay and making the site instantly responsive. Key improvements: - Zero startup delay with pre-built caches - Proper datetime serialization/deserialization - Graceful fallback to runtime caching if pre-built files missing - Technology serving human consciousness - mechanical work during build, instant experience for users 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
544 B
YAML
16 lines
544 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
web:
|
|
build: .
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- .:/app
|
|
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"]
|