繁体   English   中英

如何在prisma.yml中设置“cluster”属性

[英]How to set the “cluster” property in prisma.yml

感谢您提前阅读我的问题。 我刚开始使用本教程后的 graphql和prisma。

Deploying the Prisma database service时出现以下错误:

Error: No cluster set. Please set the "cluster" property in your prisma.yml
    at /Users/judy/howtographql/server/node_modules/graphql-config-extension-prisma/src/index.ts:89:11
    at step (/Users/judy/howtographql/server/node_modules/graphql-config-extension-prisma/dist/index.js:40:23)
    at Object.next (/Users/judy/howtographql/server/node_modules/graphql-config-extension-prisma/dist/index.js:21:53)
    at fulfilled (/Users/judy/howtographql/server/node_modules/graphql-config-extension-prisma/dist/index.js:12:58)
    at <anonymous>
error Command failed with exit code 1.
ERROR: "playground" exited with 1.
error Command failed with exit code 1.

我查看了教程,发现没有关于如何设置集群的信息。 我想知道如何解决这个问题。

默认的prisma.yaml是:

# the name for the service (will be part of the service's HTTP endpoint)
service: hackernews-graphql-js

# the cluster and stage the service is deployed to
stage: dev

# to disable authentication:
# disableAuth: true
secret: mysecret123

# the file path pointing to your data model
datamodel: datamodel.graphql

可能只是您输入了错误的端点地址。 请参阅https://github.com/prisma/graphql-config-extension-graphcool/issues/8

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM