Commit graph

7 commits

Author SHA1 Message Date
Chris Parsons
35fe84a1dd
Update claude.md to push more tests. (#84)
* Update claude.md to push more tests.

* Archiving old plans.

* fix: run DB migrations programmatically on server startup

Replace unreliable drizzle-kit CLI migration with drizzle-orm's built-in
migrator running in the server process before accepting connections. This
ensures migrations are always applied on deploy and fails fast if they error.

- Add runMigrations() to server.ts using drizzle-orm/postgres-js/migrator
- Skip migrations in development (handled manually via db:migrate)
- Add DATABASE_URL guard with a clear error message
- Remove start:production script (now identical to start)
- Update Dockerfile CMD to use npm run start

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 22:31:04 -08:00
Chris Parsons
fa5fb6d06e refactor: reorganize Docker file structure and import types separately in server.ts 2025-10-18 22:20:06 -07:00
Chris Parsons
b09c55f22c fix: update Docker file paths and simplify production start script 2025-10-17 11:04:16 -07:00
Chris Parsons
95554e2664 Revert back to good state 2025-10-16 10:10:10 -07:00
Chris Parsons
dfeb511c1b fix: copy server directory instead of single server.js file in Dockerfile 2025-10-16 08:51:33 -07:00
Chris Parsons
f72b98fdda refactor: consolidate migration and app containers into single production image 2025-10-13 11:01:12 -07:00
Chris Parsons
3117080592 Initial commit from create-react-router 2025-10-10 23:04:50 -07:00