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.
19 lines
497 B
Python
19 lines
497 B
Python
#!/usr/bin/env python
|
|
"""
|
|
TufteCMS Engine - Main application entry point.
|
|
|
|
This file serves as the entry point for the TufteCMS application.
|
|
All the core functionality has been modularized into the tuftecms package.
|
|
"""
|
|
|
|
import os
|
|
from tuftecms import create_app
|
|
|
|
# Create the Flask application using the factory pattern
|
|
app = create_app()
|
|
|
|
if __name__ == "__main__":
|
|
# Run the development server
|
|
port = int(os.environ.get("PORT", 8000))
|
|
app.run(debug=True, host="0.0.0.0", port=port)
|