fix(deploy-prod): cd checkin-app before prisma migrate deploy#1004
Merged
Conversation
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
thpr
approved these changes
Jul 15, 2026
dkaygithub
approved these changes
Jul 15, 2026
✅ Deployed to devCommit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
The override ran
npx prisma migrate deployfrom the image's WORKDIR (repo root); the schema lives atcheckin-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 thecd; the prod override was written fresh in #1003's scrub and missed it.No database changes occurred (
checkin_prodis 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