Skip to content

fix: use TEMPLATES_DIR env var for Jinja2 templates in Docker#13

Merged
amiller68 merged 1 commit intomainfrom
static-patch
Feb 13, 2026
Merged

fix: use TEMPLATES_DIR env var for Jinja2 templates in Docker#13
amiller68 merged 1 commit intomainfrom
static-patch

Conversation

@amiller68
Copy link
Owner

Summary

  • Fix Docker container crash: TemplateNotFound: 'pages/index.html' not found in search path: 'templates'
  • Create shared templates.py module that reads TEMPLATES_DIR env var (set in Dockerfile)
  • Update 9 files to use shared module instead of hardcoded relative paths

Test plan

  • Deploy and verify pages load correctly

🤖 Generated with Claude Code

Create shared templates.py module that reads TEMPLATES_DIR env var
(defaulting to "templates" for local dev). Update all files to import
from the shared module.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@amiller68 amiller68 marked this pull request as ready for review February 13, 2026 05:53
@amiller68 amiller68 merged commit e62e4bd into main Feb 13, 2026
12 checks passed
@amiller68 amiller68 deleted the static-patch branch February 13, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant