@@ -25,7 +25,7 @@ How to deploy the marmot application
...
@@ -25,7 +25,7 @@ How to deploy the marmot application
6. Setup the Reverse proxy on weblicht machine in Tübingen.
6. Setup the Reverse proxy on weblicht machine in Tübingen.
1. ssh to weblicht and `cd /data/shibsp/etc/httpd/conf.d`
1. ssh to weblicht and `cd /data/shibsp/etc/httpd/conf.d`
2. create a conf file under `services` if it's served for both http and https, otherwise create it under `services/https`or `services/http`.( For applications which require their own VirtualHosts, follow the example of weblicht-shannon)
2. create a conf file under `services` if it's served for both http and https, otherwise create it under `services/https`or `services/http`.( For applications which require their own VirtualHosts, follow the example of weblicht-shannon)
3. Reload apache from racher. Goto rancher and get inside the shibsp container and run
3. Reload apache from rancher. Goto rancher and get inside the shibsp container and run
```
```
httpd -k graceful
httpd -k graceful
```
```
...
@@ -40,8 +40,19 @@ How to upgrade
...
@@ -40,8 +40,19 @@ How to upgrade
How to run and test the marmot application locally
How to run and test the marmot application locally
---
---
1. Start application with `java -jar target/service-marmot-1.0-SNAPSHOT.jar server config.yml`
use the provided input file at service-marmot/src/main/resources/input.xml
1. To check that your application is running enter url `http://localhost:8080`
Run curl:
curl -H 'content-type: text/tcf+xml' --data-binary @input.xml -X POST `http://localhost:8080/service-marmot/annotate/marmot/stream`
Or:
curl -H 'content-type: text/plain' --data-binary @input.txt -X POST `http://localhost:8080/service-marmot/annotate/marmot/bytes`