mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-05 22:50:17 +00:00
60f1046204
- Removed the engine_new.py file as part of restructuring. - Implemented actual search functionality in api.py, allowing for searching through blog posts with relevance scoring and snippet extraction. - Enhanced caching in cache.py with a clear_cache function and improved content cleaning for search indexing. - Deleted outdated homepage-revised.html template and ensured search.html template displays search results with additional metadata such as date and matches found.
14 lines
534 B
YAML
14 lines
534 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: ["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", "./tuftecms/templates", "engine:app"]
|