From 10583fc4725d3744dbf0fb030176c78feb80026c Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 26 May 2025 13:25:35 -0400 Subject: [PATCH] Replace FastAPI CLI with uvicorn and improve SEO metadata Updates Dockerfile to use uvicorn directly instead of FastAPI CLI. Enhances HTML templates with comprehensive SEO metadata including structured data, Open Graph tags, and KJV-specific keywords throughout all page titles and descriptions. --- Dockerfile | 4 +-- kjvstudy_org/templates/base.html | 42 ++++++++++++++++++++++++++--- kjvstudy_org/templates/book.html | 35 ++++++++++++++++++++---- kjvstudy_org/templates/chapter.html | 29 ++++++++++++++++---- kjvstudy_org/templates/error.html | 27 ++++++++++--------- kjvstudy_org/templates/index.html | 13 ++++----- 6 files changed, 115 insertions(+), 35 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26808ab..2ab3b01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,5 +34,5 @@ COPY --from=builder /app/.venv /app/.venv # Copy application code COPY . . -# Run the application using FastAPI CLI -CMD ["fastapi", "run", "kjvstudy_org.server:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file +# Run the application using uvicorn directly +CMD ["uvicorn", "kjvstudy_org.server:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file diff --git a/kjvstudy_org/templates/base.html b/kjvstudy_org/templates/base.html index 0214d39..65d8e1f 100644 --- a/kjvstudy_org/templates/base.html +++ b/kjvstudy_org/templates/base.html @@ -3,8 +3,42 @@ - {% block title %}KJV Study - Bible Commentary Platform{% endblock %} - + {% block title %}Authorized King James Version (KJV) Bible Study - KJV Study{% endblock %} + + + + + + + + + + + + + + @@ -25,7 +59,7 @@ - + {% block head %}{% endblock %} @@ -46,7 +80,7 @@ 📖 KJV Study - +