I have been trying to find a way to dockerize my redwood app but I keep having an issue with prisma as I can’t migrate my database.
Can anyone assist me with this?
My dockerfile ends with
ENTRYPOINT [ "./run.sh" ]
CMD [""]
And then run.sh
is:
#!/bin/sh
# NOTE: Requires binaries. Install with:
# yarn global add @redwoodjs/cli prisma
prisma migrate deploy --schema=/app/api/db/schema.prisma
rw data-migrate up
rw serve
1 Like
Am I going to add the yarn global add @redwoodjs/cli prisma command too?
Yes, you will have to do that in your dockerfile
okay. Thank you