Skip to content

Commit b89ecd2

Browse files
cppwfsonobc
authored andcommitted
Update client port configuration instructions
Clarify that the `launched.grpc.port` environment variable must be set to specify the server port, rather than assuming port 9090. Add concrete example of setting the environment variable using export command.
1 parent 630b7c5 commit b89ecd2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samples/grpc-client/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ $ ./mvnw spring-boot:run
1818
message: "Hello ==> Alien"
1919
```
2020

21-
The server has to be running on port 9090. You can use the `grpc-server` sample for that.
21+
You will need to set the property `launched.grpc.port` to the port the server is running on.
22+
If the server is running on port 9090, the property can be set using an environment variable.
23+
For example: `export LAUNCHED_GRPC_PORT=9090`.
24+
The `grpc-server` sample can be used for the server.
2225

2326
You can also build and run the application as a native image using GraalVM, in the normal way for a Spring Boot application. E.g:
2427

0 commit comments

Comments
 (0)