Skip to content

Commit 9c4f374

Browse files
author
Kevin Dougan
committed
Changed the instructions on how to change the server port.
1 parent abcb8a9 commit 9c4f374

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,25 +191,30 @@ public class YourInterceptor
191191

192192
The easiest way to run this server entirely depends on your environment requirements. The following ways are supported:
193193

194-
### Using Spring Boot
194+
### Using jetty
195195
```bash
196-
mvn spring-boot:run
196+
mvn -Pjetty spring-boot:run
197197
```
198198

199199
The Server will then be accessible at http://localhost:8080/fhir and the CapabilityStatement will be found at http://localhost:8080/fhir/metadata.
200200

201-
### Using jetty
201+
### Using Spring Boot
202202
```bash
203-
mvn -Pjetty spring-boot:run
203+
mvn spring-boot:run
204204
```
205205

206-
If you need to run this server on a different port (using Maven), you can change the port in the run command as follows:
206+
The Server will then be accessible at http://localhost:8080/fhir and the CapabilityStatement will be found at http://localhost:8080/fhir/metadata.
207+
208+
If you want to run this server on a different port, you can change the port in the `src/main/resources/application.yaml` file as follows:
207209

208-
```bash
209-
mvn -Pjetty -Dserver.port=8888 spring-boot:run
210+
```yaml
211+
server:
212+
# servlet:
213+
# context-path: /example/path
214+
port: 8888
210215
```
211216
212-
The Server will then be accessible at http://localhost:8888/ and eg. http://localhost:8888/fhir/metadata. Remember to adjust you overlay configuration in the application.yaml to the following:
217+
The Server will then be accessible at http://localhost:8888/fhir and the CapabilityStatement will be found at http://localhost:8888/fhir/metadata. Remember to adjust your overlay configuration in the `application.yaml` file to the following:
213218

214219
```yaml
215220
tester:

src/main/resources/application.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
#Uncomment the following lines to enable the fhir endpoint to be available at /example/path/fhir instead of /fhir
2-
#server:
1+
#Uncomment the "servlet" and "context-path" lines below to make the fhir endpoint available at /example/path/fhir instead of the default value of /fhir
2+
server:
33
# servlet:
44
# context-path: /example/path
5+
port: 8080
56
#Adds the option to go to eg. http://localhost:8080/actuator/health for seeing the running configuration
67
#see https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints
78
management:

0 commit comments

Comments
 (0)