You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-10Lines changed: 21 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,21 +189,32 @@ public class YourInterceptor
189
189
190
190
## Running locally
191
191
192
-
The easiest way to run this server entirely depends on your environment requirements. At least, the following 4 ways are supported:
192
+
The easiest way to run this server entirely depends on your environment requirements. The following ways are supported:
193
193
194
194
### Using jetty
195
195
```bash
196
-
mvn -Pjetty jetty:run
196
+
mvn -Pjetty spring-boot:run
197
197
```
198
198
199
+
The Server will then be accessible at http://localhost:8080/fhir and the CapabilityStatement will be found at http://localhost:8080/fhir/metadata.
199
200
200
-
If you need to run this server on a different port (using Maven), you can change the port in the run command as follows:
201
-
201
+
### Using Spring Boot
202
202
```bash
203
-
mvn -Pjetty -Djetty.port=8888 jetty:run
203
+
mvn spring-boot:run
204
+
```
205
+
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:
209
+
210
+
```yaml
211
+
server:
212
+
# servlet:
213
+
# context-path: /example/path
214
+
port: 8888
204
215
```
205
216
206
-
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.yamlto eg.
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:
207
218
208
219
```yaml
209
220
tester:
@@ -219,7 +230,7 @@ Server will then be accessible at http://localhost:8888/ and eg. http://localhos
219
230
```bash
220
231
mvn clean spring-boot:run -Pboot
221
232
```
222
-
Server will then be accessible at http://localhost:8080/ and eg. http://localhost:8080/fhir/metadata. Remember to adjust you overlay configuration in the application.yaml to eg.
233
+
Server will then be accessible at http://localhost:8080/ and eg. http://localhost:8080/fhir/metadata. Remember to adjust you overlay configuration in the application.yaml to the following:
223
234
224
235
```yaml
225
236
tester:
@@ -235,7 +246,7 @@ Server will then be accessible at http://localhost:8080/ and eg. http://localhos
Server will then be accessible at http://localhost:8080/ and eg. http://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to eg.
249
+
Server will then be accessible at http://localhost:8080/ and eg. http://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to the following:
239
250
240
251
```yaml
241
252
tester:
@@ -250,7 +261,7 @@ Server will then be accessible at http://localhost:8080/ and eg. http://localhos
Server will then be accessible at http://localhost:8080/ and eg. http://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to eg.
264
+
Server will then be accessible at http://localhost:8080/ and eg. http://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to the following:
254
265
255
266
```yaml
256
267
tester:
@@ -266,7 +277,7 @@ Server will then be accessible at http://localhost:8080/ and eg. http://localhos
266
277
```bash
267
278
./build-docker-image.sh && docker run -p 8080:8080 hapi-fhir/hapi-fhir-jpaserver-starter:latest
268
279
```
269
-
Server will then be accessible at http://localhost:8080/ and eg. http://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to eg.
280
+
Server will then be accessible at http://localhost:8080/ and eg. http://localhost:8080/fhir/metadata. Remember to adjust your overlay configuration in the application.yaml to the following:
Copy file name to clipboardExpand all lines: src/main/resources/application.yaml
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff 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:
3
3
# servlet:
4
4
# context-path: /example/path
5
+
port: 8080
5
6
#Adds the option to go to eg. http://localhost:8080/actuator/health for seeing the running configuration
0 commit comments