Changed the instructions on how to change the server port.
This commit is contained in:
25
README.md
25
README.md
@@ -191,6 +191,13 @@ public class YourInterceptor
|
|||||||
|
|
||||||
The easiest way to run this server entirely depends on your environment requirements. The following ways are supported:
|
The easiest way to run this server entirely depends on your environment requirements. The following ways are supported:
|
||||||
|
|
||||||
|
### Using jetty
|
||||||
|
```bash
|
||||||
|
mvn -Pjetty spring-boot:run
|
||||||
|
```
|
||||||
|
|
||||||
|
The Server will then be accessible at http://localhost:8080/fhir and the CapabilityStatement will be found at http://localhost:8080/fhir/metadata.
|
||||||
|
|
||||||
### Using Spring Boot
|
### Using Spring Boot
|
||||||
```bash
|
```bash
|
||||||
mvn spring-boot:run
|
mvn spring-boot:run
|
||||||
@@ -198,18 +205,16 @@ mvn spring-boot:run
|
|||||||
|
|
||||||
The Server will then be accessible at http://localhost:8080/fhir and the CapabilityStatement will be found at http://localhost:8080/fhir/metadata.
|
The Server will then be accessible at http://localhost:8080/fhir and the CapabilityStatement will be found at http://localhost:8080/fhir/metadata.
|
||||||
|
|
||||||
### Using jetty
|
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 spring-boot:run
|
```yaml
|
||||||
|
server:
|
||||||
|
# servlet:
|
||||||
|
# context-path: /example/path
|
||||||
|
port: 8888
|
||||||
```
|
```
|
||||||
|
|
||||||
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://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:
|
||||||
|
|
||||||
```bash
|
|
||||||
mvn -Pjetty -Dserver.port=8888 spring-boot:run
|
|
||||||
```
|
|
||||||
|
|
||||||
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:
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
tester:
|
tester:
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#Uncomment the following lines to enable the fhir endpoint to be available at /example/path/fhir instead of /fhir
|
#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:
|
server:
|
||||||
# servlet:
|
# servlet:
|
||||||
# context-path: /example/path
|
# context-path: /example/path
|
||||||
|
port: 8080
|
||||||
#Adds the option to go to eg. http://localhost:8080/actuator/health for seeing the running configuration
|
#Adds the option to go to eg. http://localhost:8080/actuator/health for seeing the running configuration
|
||||||
#see https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints
|
#see https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints
|
||||||
management:
|
management:
|
||||||
|
|||||||
Reference in New Issue
Block a user