Skip to content

Commit

Permalink
Changed the instructions on how to change the server port.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinDougan-SmileCDR authored and artiom.darie committed May 7, 2024
1 parent 8245d39 commit fdf9948
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,25 +191,30 @@ public class YourInterceptor

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

### Using Spring Boot
### Using jetty
```bash
mvn spring-boot:run
mvn -Pjetty spring-boot:run
```

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

### Using jetty
### Using Spring Boot
```bash
mvn -Pjetty spring-boot:run
mvn spring-boot:run
```

If you need to run this server on a different port (using Maven), you can change the port in the run command as follows:
The Server will then be accessible at http:https://localhost:8080/fhir and the CapabilityStatement will be found at http:https://localhost:8080/fhir/metadata.

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:

```bash
mvn -Pjetty -Dserver.port=8888 spring-boot:run
```yaml
server:
# servlet:
# context-path: /example/path
port: 8888
```

The Server will then be accessible at http:https://localhost:8888/ and eg. http:https://localhost:8888/fhir/metadata. Remember to adjust you overlay configuration in the application.yaml to the following:
The Server will then be accessible at http:https://localhost:8888/fhir and the CapabilityStatement will be found at http:https://localhost:8888/fhir/metadata. Remember to adjust your overlay configuration in the `application.yaml` file to the following:

```yaml
tester:
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#Uncomment the following lines to enable the fhir endpoint to be available at /example/path/fhir instead of /fhir
#server:
#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
server:
# servlet:
# context-path: /example/path
port: 8080
#Adds the option to go to eg. http:https://localhost:8080/actuator/health for seeing the running configuration
#see https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints
management:
Expand Down

0 comments on commit fdf9948

Please sign in to comment.