Skip to content

Commit

Permalink
Fix registration endpoints URL in quickstart guide and in code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanEwen committed Jan 23, 2024
1 parent 29e070c commit dbb2c61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ Once the runtime is up, let it discover your services by executing:
- For macOS:

```shell
curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}'
curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}'
```

- For Linux:

```shell
curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}'
curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}'
```

### Call the Service
Expand Down
4 changes: 2 additions & 2 deletions template/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ restate
//
// - On macOS:
// docker run --name restate_dev --rm -p 8080:8080 -p 9070:9070 -p 9071:9071 docker.io/restatedev/restate:latest
// curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}'
// curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}'
//
// - On Linux:
// docker run --name restate_dev --rm --network=host docker.io/restatedev/restate:latest
// curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}'
// curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}'
4 changes: 2 additions & 2 deletions template_grpc/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ restate
//
// - On macOS:
// docker run --name restate_dev --rm -p 8080:8080 -p 9070:9070 -p 9071:9071 docker.io/restatedev/restate:latest
// curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}'
// curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}'
//
// - On Linux:
// docker run --name restate_dev --rm --network=host docker.io/restatedev/restate:latest
// curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}'
// curl -X POST http://localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://localhost:9080"}'

0 comments on commit dbb2c61

Please sign in to comment.