I'm upgrading a production Prisma deployment from ...
# orm-help
l
I'm upgrading a production Prisma deployment from 1.6 to 1.9, and the Prisma provided upgrade docs are uncharacteristically bad because they don't provide a step by step how to (not even a simple "here's how to get a docker-compose.yml generated"). Is there any how to, step by step guide out there?
n
in this section of the upgrade guide to 1.7 it is described how to generate a
docker-compose.yml
https://www.prisma.io/docs/reference/upgrade-guides/upgrading-prisma/upgrade-to-1.7-iquaecuj6b#deprecating-local-commands
is that what you are looking for?
l
Thanks @nilan! I feel like I've read every word of that upgrade 10x, so maybe I'm so dense that I'm skipping over it. The only thing I can find is "prisma init generates a docker-compose.yml"... but I don't want to init, I want to know how to make the file from my existing 1.6 service. Should I just copy and paste the raw version and see if the defaults work? That's what's not obvious to a Docker neophyte -- is the generic file what a 1.6-> 1.7 project should be? If so, then my how to is: 1. Create new docker-componse.yml in root and copy and paste generic settings. 2. Start the 1.6 cluster
prisma local start
3. Upgrade 1.6 cluster
prisma local upgrade
4. Stop everything
prisma cluster nuke
5.
docker-compose up -d
6. Change .graphqlconfig.yml with post deploy hooks 7. Change prisma.yml to
endpoint
8.
prisma deploy
??
n
@lawjolla how does your current setup look like? Are you hosting Prisma yourself? How?
Your how-to misses the required changes to
PRISMA_CONFIG
in the
docker-compose.yml
file. You will need to add a
managementApiSecret
. 4. be aware that this might also remove your data, depending on your Docker setup. I don't think you need to include this step. 5. likewise, you'd rather need to restart your docker service. Depends on your current setup 🙂
l
Thanks ill give it a shot! This is on DO. An example / test that made its way into production. 😂 😮
n
Got it! Can you test upgrade on staging first? This will give you confidence for production 🙂
Thanks for your feedback by the way, I'll keep notes along the way to ensure your findings are ending up in the guide.