since when is endpoint deprecated? the 1.7/1.8 upg...
# orm-help
v
since when is endpoint deprecated? the 1.7/1.8 upgrade guide doesn’t reference this.
Copy code
endpoint: ${env:PRISMA_ENDPOINT}
secret: ${env:PRISMA_MANAGEMENT_API_SECRET}
datamodel: datamodel.graphql

hooks:
  post-deploy:
    - graphql get-schema --project prisma
    - graphql prepare
n
it's not deprecated. Somewhere in your dep tree there is an old version of graphql-config-extension-prisma flying around.
npm list graphql-config-extension-prisma and npm list graphql-config-extension-prisma -g will help you find the cause
v
right: graphql-config-extension-prisma seem to be coming from graphql-cli
from yarn.lock:
n
Yes, that's good.It's just an old version which is the problem.
A version that doesn't know the endpoint property.
v
Copy code
graphql-cli@2.16.3:
  version "2.16.3"
  resolved "<https://registry.yarnpkg.com/graphql-cli/-/graphql-cli-2.16.3.tgz#3042b7dbcdca33fe4108862de64bd42834ff5bec>"
  dependencies:
    ...
    graphql-config-extension-prisma "0.0.11"
latest version
n
Did you check it globally as well?
v
ahhhhhh… my global version is still 1.6
with global @ 1.9, back to
Cluster secret in env var PRISMA_MANAGEMENT_API_SECRET does not match for cluster local
n
where does your Prisma server live? is it locally in docker?
what's its version?
v
locally yes
n
docker ps
v
it’s still 1.6
but I don’t care to scrap it
I guess I can just destroy it and it will build a new one?
n
Well that's probably the cause for the error message
You can also do docker pull
v
it works! thank you so much
fast parrot 1
on the task of deployment this week, hopefully docker-compose.yml will make things easier :]
💯 1
l
@veksen what did you do? I'm stuck in the 1.6 -> 1.9 too
v
@lawjolla do you have live data?
in my case I’m still in dev, so I destroyed the prisma local Docker container, and deployed a new one
l
I do. I’m considering doing the same though and reimporting the data
It’s in production on digital ocean
v
tagged you here with what I did to upgrade
plus left mini-guide/note to my co-worker (she was on a public cluster and moving to local Docker): - Set up local Docker - Upgrade local Prisma to 1.9 (npm i -g prisma or yarn add global prisma) - Set up .env according to .env.example - yarn prisma deploy - yarn dev - Should be good
l
I eventually gave up, exported the data, tore down the 1.6 cluster, upgraded Prisma, spun up the 1.9 cluster, and imported the data. It worked fine
v
yeah now I'm having trouble on my other computer..