Skip to content

Conversation

@nicholaspsmith
Copy link
Owner

Summary

  • Fixed production deployment issue where the study_sessions table wasn't being created
  • Added COPY commands to Dockerfile to include migration files in final image
  • Moved tsx from devDependencies to dependencies (needed at runtime)

Root Cause

The Dockerfile runner stage wasn't copying:

  • drizzle/ folder (migration SQL files)
  • scripts/db-migrate.ts and scripts/post-migrate.ts
  • drizzle.config.ts and lib/ folder

Test plan

  • Verify Docker image builds successfully
  • Verify migrations run on container startup
  • Verify study sessions work in production

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
@nicholaspsmith nicholaspsmith merged commit 29b4300 into main Jan 14, 2026
9 checks passed
@nicholaspsmith nicholaspsmith deleted the fix-docker-migrations branch January 14, 2026 23:11
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.

2 participants