Skip to content

Commit 05469e6

Browse files
authored
Update README.md
1 parent 88f2e52 commit 05469e6

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

README.md

+4-9
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ yarn install
1818
yarn prisma deploy
1919
```
2020

21-
When prompted where (i.e. to which _cluster_) you want to deploy your service, choose any of the public clusters, e.g. `public-us1` or `public-eu1`. (If you have Docker installed, you can also deploy locally.)
22-
23-
> **Note**: This repository uses a slightly outdated version of the Prisma CLI and will be updated soon to use the [latest release](https://www.prisma.io/docs/reference/upgrade-guides/upgrading-prisma/upgrade-to-1.7-iquaecuj6b).
21+
When prompted where (i.e. to which _Prisma server_) you want to deploy your service, choose the **Demo server** which can be used for free in Prisma Cloud. If you haven't done so already, you will be asked to register with Prisma Cloud (which you can do via GitHub). For the following prompts in the terminal you can select the suggested values by hitting **Enter**. (If you have Docker installed, you can also choose to deploy Prisma locally by _Creating a new database_.)
2422

2523
### 3. Set the Prisma API endpoint
2624

27-
From the output of the previous command, copy the `HTTP` endpoint and paste it into `server/src/index.js` where it's used to instantiate the `Prisma` binding. You need to replace the current placeholder `__PRISMA_ENDPOINT__`:
25+
The `prisma deploy` command wrote the endpoint property into `server/database/prisma.yml`. Copy it from there and paste it into `server/src/index.js` where it's used to instantiate the `Prisma` binding. You need to replace the current placeholder `__PRISMA_ENDPOINT__`:
2826

2927
```js
3028
const server = new GraphQLServer({
@@ -51,21 +49,18 @@ const server = new GraphQLServer({
5149
...req,
5250
db: new Prisma({
5351
typeDefs: 'src/generated/prisma.graphql',
54-
endpoint: 'https://eu1.prisma.sh/public-hillcloak-flier-942261/hackernews-graphql-js/dev',
52+
endpoint: 'https://eu1.prisma.sh/john-doe/hackernews-graphql-js/dev',
5553
secret: 'mysecret123',
5654
}),
5755
}),
5856
})
5957
```
6058

61-
Note that the part `public-hillcloak-flier-952361` of the URL is unique to your Prisma API.
62-
6359
### 4. Start the server
6460

65-
To start the server, all you need to do is install the the dependencies execute the `start` script by running the following command inside the `server` directory:
61+
To start the server, all you need to do is execute the `start` script by running the following command inside the `server` directory:
6662

6763
```sh
68-
yarn install
6964
yarn start
7065
```
7166

0 commit comments

Comments
 (0)