Skip to content

Commit 517bd10

Browse files
author
mielvds
committed
Update README.md
1 parent 779c3a1 commit 517bd10

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,26 @@ 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:
32+
java -jar ldf-server.jar [config.json]
3033

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

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.
39+
Create an `config.json` configuration file with the data sources (analogous to the example file) and add the following init parameter to `web.xml`:
40+
<init-param>
41+
<param-name>configFile</param-name>
42+
<param-value>path/to/config/file</param-value>
43+
</init-param>
44+
45+
If no parameter is set, it looks for a default `config-example.json` in the folder of the deployed WAR file.
3546

3647
## Status
3748
This is software is still under development. It currently only supports:

0 commit comments

Comments
 (0)