Skip to content

Commit ea92603

Browse files
author
Miel Vander Sande
committed
Merge branch 'master' of github.com:LinkedDataFragments/Server.Java
2 parents 4736d98 + 7b1c2fa commit ea92603

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,28 @@ Each Triple Pattern Fragment offers:
2323
This is a **Java** implementation based on Jena.
2424

2525
## Build
26-
Execute the following command to create a WAR file:
26+
Execute the following command to create a WAR and JAR file:
2727
```
2828
$ mvn install
2929
```
30+
## Deploy stand alone
31+
The server can run with Jetty from a single jar as follows:
3032

31-
## Deploy
33+
java -jar ldf-server.jar [config.json]
34+
35+
The `config.json` parameters is optional and is default the `config-example.json` file in the same directory as `ldf-server.jar`.
36+
37+
## Deploy on an application server
3238
Use an application server such as [Tomcat](http://tomcat.apache.org/) to deploy the WAR file.
3339

34-
Place an `ldf-server.json` configuration file with the data sources (analogous to the example file) in the `../conf` folder relative to the deployed WAR file.
40+
Create an `config.json` configuration file with the data sources (analogous to the example file) and add the following init parameter to `web.xml`:
41+
42+
<init-param>
43+
<param-name>configFile</param-name>
44+
<param-value>path/to/config/file</param-value>
45+
</init-param>
46+
47+
If no parameter is set, it looks for a default `config-example.json` in the folder of the deployed WAR file.
3548

3649
## Status
3750
This is software is still under development. It currently only supports:

0 commit comments

Comments
 (0)