Skip to content

fix(deploy-prod): cd checkin-app before prisma migrate deploy#1004

Merged
dkaygithub merged 1 commit into
mainfrom
fix/migrate-prod-cwd
Jul 15, 2026
Merged

fix(deploy-prod): cd checkin-app before prisma migrate deploy#1004
dkaygithub merged 1 commit into
mainfrom
fix/migrate-prod-cwd

Conversation

@jee7s

@jee7s jee7s commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

What

One line: prefix the prod migrate container override with cd checkin-app && , exactly as deploy-dev.yml:137 already does.

Why

v1.0.0 (run 29387368725) got through the reviewer gate, built and pushed the GHCR image, then failed in Run database migrations: all five retry attempts printed

Error: Could not find Prisma Schema that is required for this command.

The override ran npx prisma migrate deploy from the image's WORKDIR (repo root); the schema lives at checkin-app/prisma/schema.prisma. The retry loop's P1001/auto-pause raison d'être never got a chance — Prisma failed before touching the network. The dev override carries the cd; the prod override was written fresh in #1003's scrub and missed it.

No database changes occurred (checkin_prod is still empty of app tables); re-cutting v1.0.0 after this merges runs the coalesced baseline for the first time.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hq9naXJVyJnLYpFZapZW24

The migrate container override ran npx prisma migrate deploy from the
image WORKDIR (repo root), where there is no Prisma schema — all five
retries of the v1.0.0 migrate task failed with 'Could not find Prisma
Schema'. deploy-dev.yml's override has the cd; mirror it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hq9naXJVyJnLYpFZapZW24
@jee7s jee7s requested review from dkaygithub and thpr July 15, 2026 04:58
@dkaygithub dkaygithub added this pull request to the merge queue Jul 15, 2026
Merged via the queue into main with commit fd77e83 Jul 15, 2026
6 checks passed
@github-actions

Copy link
Copy Markdown

✅ Deployed to dev

Commit fd77e83 is live on https://ops-dev.innovationtreehouse.org.

  • Image: ghcr.io/innovationtreehouse/checkin-dev:fd77e83
  • Migrations: applied · Service: stable
  • Deploy run

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.

3 participants