after updating to prisma 1.20 my post deploy hook ...
# orm-help
c
after updating to prisma 1.20 my post deploy hook isn't running anymore. Hook:
Copy code
hooks:
  post-deploy:
    - graphql get-schema -p prisma
result:
Copy code
post-deploy:
spawnSync graphql ENOENT
Running graphql get-schema -p prisma ×
Generating schema 36ms
r
there seems to be different ways of invoking some of these post deploy commands. unfortunately, a lot of times when you google stuff on Prisma, it returns old documentation vs the most current. For example, my
prisma.yml
file looks like this in regards to code generation and schema copying:
Copy code
generate:
  - generator: javascript-client
    output: ../src/generated
  - generator: graphql-schema
    output: ../src/generated
Copy code
hooks:
  post-deploy:
    - prisma generate
seems to work, but again, not sure if im doing it the “right way”