diff --git a/entrypoint.sh b/entrypoint.sh index 4ac9629..23dbe32 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,5 +4,4 @@ envsubst < /app/templates/index.html.template > /app/templates/index.html # Start Gunicorn; using an environment variable for workers (default is 3) -# TODO: Variable mismatch — example.env sets GUNICORN_WORKERS but this reads WORKERS. Change to ${GUNICORN_WORKERS:-3}. -exec gunicorn --bind 0.0.0.0:8000 app:app --workers ${WORKERS:-3} +exec gunicorn --bind 0.0.0.0:8000 app:app --workers ${GUNICORN_WORKERS:-3} diff --git a/scripts/guestbook_export.py b/scripts/guestbook_export.py index 310d024..fe85294 100644 --- a/scripts/guestbook_export.py +++ b/scripts/guestbook_export.py @@ -1,9 +1,8 @@ import csv +import os import sqlite3 -# TODO: Hardcoded relative path — breaks if script is run from a different directory. -# Replace with: DATABASE = os.environ.get('DATABASE_PATH', 'guestbook.db') and import os. -DATABASE = 'guestbook.db' +DATABASE = os.environ.get('DATABASE_PATH', 'guestbook.db') EXPORT_FILE = 'mailchimp_export.csv' def export_guestbook_to_csv(): diff --git a/templates/index.html.template b/templates/index.html.template index dcdbdce..1cfee32 100644 --- a/templates/index.html.template +++ b/templates/index.html.template @@ -23,16 +23,17 @@ .scrolling-content { display: inline-block; padding: 10px; + font-size: 1.25rem; animation: scroll-left linear infinite; } @keyframes scroll-left { 0% { - transform: translateX(100vw); + transform: translateX(0); } 100% { - transform: translateX(-100%); + transform: translateX(-50%); } } @@ -97,10 +98,16 @@ +