Skip to content

Build container should include Prisma migrations #1014

@colinmollenhour

Description

@colinmollenhour

It appears that the Docker container missing the Prisma migrations. I got the container running on Coolify but the database is empty and I don't see the Prisma files inside the container anywhere.. E.g. I tried npx prisma migrate deploy but there are no prisma files anywhere to be found. Copying these to the container build would make running them possible without cloning the repo and setting the entire project up manually just to run migrations.

In another project I did this for Drizzle by copying migration files to a separate directory with a super basic package.json file which allowed me to run the migrations on container start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions