Skip to content

Commit

Permalink
Updated the README file with the new run instructions.
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 1aa8eff commit 8245d39
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,21 +189,27 @@ public class YourInterceptor

## Running locally

The easiest way to run this server entirely depends on your environment requirements. At least, the following 4 ways are supported:
The easiest way to run this server entirely depends on your environment requirements. The following ways are supported:

### Using jetty
### Using Spring Boot
```bash
mvn -Pjetty jetty:run
mvn 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
```bash
mvn -Pjetty 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:

```bash
mvn -Pjetty -Djetty.port=8888 jetty:run
mvn -Pjetty -Dserver.port=8888 spring-boot:run
```

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 eg.
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:

```yaml
tester:
Expand All @@ -219,7 +225,7 @@ Server will then be accessible at http:https://localhost:8888/ and eg. http:https://localhos
```bash
mvn clean spring-boot:run -Pboot
```
Server will then be accessible at http:https://localhost:8080/ and eg. http:https://localhost:8080/fhir/metadata. Remember to adjust you overlay configuration in the application.yaml to eg.
Server will then be accessible at http:https://localhost:8080/ and eg. http:https://localhost:8080/fhir/metadata. Remember to adjust you overlay configuration in the application.yaml to the following:

```yaml
tester:
Expand All @@ -235,7 +241,7 @@ Server will then be accessible at http:https://localhost:8080/ and eg. http:https://localhos
```bash
mvn clean package spring-boot:repackage -Pboot && java -jar target/ROOT.war
```
Server will then be accessible at http:https://localhost:8080/ and eg. http:https://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to eg.
Server will then be accessible at http:https://localhost:8080/ and eg. http:https://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to the following:

```yaml
tester:
Expand All @@ -250,7 +256,7 @@ Server will then be accessible at http:https://localhost:8080/ and eg. http:https://localhos
```bash
mvn clean package com.google.cloud.tools:jib-maven-plugin:dockerBuild -Dimage=distroless-hapi && docker run -p 8080:8080 distroless-hapi
```
Server will then be accessible at http:https://localhost:8080/ and eg. http:https://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to eg.
Server will then be accessible at http:https://localhost:8080/ and eg. http:https://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to the following:

```yaml
tester:
Expand All @@ -266,7 +272,7 @@ Server will then be accessible at http:https://localhost:8080/ and eg. http:https://localhos
```bash
./build-docker-image.sh && docker run -p 8080:8080 hapi-fhir/hapi-fhir-jpaserver-starter:latest
```
Server will then be accessible at http:https://localhost:8080/ and eg. http:https://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to eg.
Server will then be accessible at http:https://localhost:8080/ and eg. http:https://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to the following:

```yaml
tester:
Expand Down

0 comments on commit 8245d39

Please sign in to comment.