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
Abuzeid
Abuzeid2y ago
I didn't use docker before, but you can check prisma docs on it
Abuzeid
Abuzeid2y ago
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.
circles
circles2y ago
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
Abuzeid
Abuzeid2y ago
have you tried prism push command?
Matvey
Matvey2y ago
That's prisma v1 docs. connect to your db and preform a migration or do npx prisma db push to sync your db schema
Abuzeid
Abuzeid2y ago
My bad, didn't notice that.
Want results from more Discord servers?
Add your server