Simon
02/16/2018, 7:52 AMdivyendu
02/16/2018, 8:12 AMprisma local nuke
šFuturekam
02/16/2018, 3:34 PMFuturekam
02/16/2018, 3:34 PMFuturekam
02/16/2018, 3:38 PM{
"data": null,
"errors": [
{
"message": "GraphQL Error (Code: 200)",
"locations": [],
"path": [
"posts"
]
}
]
}
divyendu
02/16/2018, 4:00 PMprisma deploy
Futurekam
02/16/2018, 4:04 PMdocker ps
and it looks like everything is running.
Deploying service sakura
to stage dev
on cluster public-freechiller-471/sakura
127ms
Service is already up to date.
Hooks:
Checking, if schema file changed 486msdivyendu
02/16/2018, 4:07 PMsrc/index.js
and also check cluster, stage in database/prisma.yml
?Futurekam
02/16/2018, 4:11 PMdb: new Prisma({
typeDefs: 'src/generated/prisma.graphql',
endpoint: process.env.PRISMA_ENDPOINT, // the endpoint of the Prisma DB service (value is set in .env)
secret: process.env.PRISMA_SECRET, // taken from database/prisma.yml (value is set in .env)
debug: true, // log all GraphQL queries & mutations
}),
prisma.yml
# the name for the service (will be part of the service's HTTP endpoint)
service: sakura
# the cluster and stage the service is deployed to
stage: ${env:PRISMA_STAGE}
# to disable authentication:
# disableAuth: true
secret: ${env:PRISMA_SECRET}
# the file path pointing to your data model
datamodel: datamodel.graphql
# seed your service with initial data based on seed.graphql
seed:
import: seed.graphql
cluster: ${env:PRISMA_CLUSTER}
divyendu
02/16/2018, 4:12 PMecho $PRISMA_ENDPOINT
in CLI? or search for it in codebase?divyendu
02/16/2018, 4:12 PMprisma.yml
šFuturekam
02/16/2018, 4:12 PMPRISMA_ENDPOINT="<http://redacted:4466/public-x-471/sakura/dev>"
PRISMA_CLUSTER="public-x-471/sakura"
PRISMA_STAGE="dev"
Futurekam
02/16/2018, 4:13 PMprisma.yml
```# the name for the service (will be part of the service's HTTP endpoint)
service: sakura
# the cluster and stage the service is deployed to
stage: ${env:PRISMA_STAGE}
# to disable authentication:
# disableAuth: true
secret: ${env:PRISMA_SECRET}
# the file path pointing to your data model
datamodel: datamodel.graphql
# seed your service with initial data based on seed.graphql
seed:
import: seed.graphql
cluster: ${env:PRISMA_CLUSTER}
```divyendu
02/16/2018, 4:16 PMFuturekam
02/16/2018, 4:16 PMFuturekam
02/16/2018, 4:16 PMdivyendu
02/16/2018, 4:18 PMFuturekam
02/16/2018, 4:19 PMFuturekam
02/16/2018, 4:19 PMdivyendu
02/16/2018, 4:22 PMdivyendu
02/16/2018, 4:23 PMprisma info
output for you?Futurekam
02/16/2018, 4:28 PMš . . . prisma info
Service Name: sakura
dev (cluster: `sakura`)
HTTP: <http://hidden-ip:4466/public-freechiller-471/sakura/dev>
Websocket: <ws://hidden-ip:4466/public-freechiller-471/sakura/dev>
divyendu
02/16/2018, 4:30 PMFuturekam
02/16/2018, 4:34 PMFuturekam
02/16/2018, 4:35 PMdivyendu
02/16/2018, 4:35 PMdivyendu
02/16/2018, 4:36 PMdivyendu
02/16/2018, 4:36 PMdivyendu
02/16/2018, 4:36 PMdivyendu
02/16/2018, 4:36 PMFuturekam
02/16/2018, 4:36 PMFuturekam
02/16/2018, 4:36 PMFuturekam
02/16/2018, 4:36 PMdivyendu
02/16/2018, 4:36 PMFuturekam
02/16/2018, 4:37 PMFuturekam
02/16/2018, 4:37 PMdivyendu
02/16/2018, 4:37 PMFuturekam
02/16/2018, 4:37 PM{
"code": 3015,
"requestId": "api:api:c05o0126v98z1v75",
"error": "Your token is invalid. It might have expired or you might be using a token from a different project."
}
Futurekam
02/16/2018, 4:37 PMFuturekam
02/16/2018, 4:37 PMFuturekam
02/16/2018, 4:37 PMFuturekam
02/16/2018, 4:37 PMdivyendu
02/16/2018, 4:38 PMFuturekam
02/16/2018, 4:38 PMdivyendu
02/16/2018, 4:38 PMAuthorization: Bearer <token>
in http headersFuturekam
02/16/2018, 4:38 PM{
"Authentication": "Bearer token"
}
Futurekam
02/16/2018, 4:38 PMdivyendu
02/16/2018, 4:39 PMdivyendu
02/16/2018, 4:39 PMFuturekam
02/16/2018, 4:40 PM{
"code": 3016,
"requestId": "api:api:cjdq5tqkw005v0126lm5rbx63",
"error": "Project not found: 'public-freechiller-471~sakura@dev'"
}
divyendu
02/16/2018, 4:40 PMdivyendu
02/16/2018, 4:41 PMdisableAuth: true
just for testing purpose?Futurekam
02/16/2018, 4:43 PMdivyendu
02/16/2018, 4:44 PMFuturekam
02/16/2018, 4:51 PMdivyendu
02/16/2018, 4:53 PMFuturekam
02/16/2018, 4:53 PMFuturekam
02/16/2018, 4:53 PMdivyendu
02/16/2018, 4:54 PMFuturekam
02/16/2018, 5:03 PMFuturekam
02/16/2018, 5:03 PMFuturekam
02/16/2018, 5:04 PMFuturekam
02/16/2018, 5:05 PMFuturekam
02/16/2018, 5:05 PMdivyendu
02/16/2018, 7:40 PM