What's the best way to synchronize the DB Schema when using T3 Stack with Prisma??
I'm using Docker to build my application in production and I'm unsure how to actually sync the schema with the database.
6 Replies
I didn't use docker before, but you can check prisma docs on it
Prisma
Prisma 1.34 - Docker
Overview
Prisma servers can be run with Docker. This page contains everything you need to know around the Docker setup and relevant worfklows.
I'm using docker to build the T3 app alongside with the prisma client, https://create.t3.gg/en/deployment/docker/, but I cannot really push my schema to the db
have you tried prism push command?
That's prisma v1 docs.
connect to your db and preform a migration or do
npx prisma db push
to sync your db schemaMy bad, didn't notice that.