Skip to content

Commit 4f2d8c9

Browse files
committed
Make JAR, not WAR.
1 parent 94ead96 commit 4f2d8c9

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

administration/installation/running.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,10 @@ subtitle: Running
77

88
# Running
99

10-
The WAR file is self-executable, so you do not need to install Tomcat or a similar
11-
Java servlet server to run it. Just give the file executable permissions:
10+
The JAR file is executable and contains Tomcat in it. Just run it with `java`:
1211

1312
```bash
14-
$ chmod +x moera-node-0.14.0.war
15-
```
16-
17-
And run it:
18-
19-
```bash
20-
$ SPRING_APPLICATION_JSON={"spring.profiles.active":"prod"} ./moera-node-0.14.0.war
13+
$ SPRING_APPLICATION_JSON={"spring.profiles.active":"prod"} java -jar ./moera-node-0.17.0.jar
2114
```
2215

2316
The value of `spring.profiles.active` setting (that is set above through
@@ -50,7 +43,7 @@ WorkingDirectory=/srv/moera-node
5043
Environment=LANG=en_US.UTF-8 \
5144
'SPRING_APPLICATION_JSON={"spring.profiles.active":"prod"}' \
5245
JAVA_OPTS="-Xmx2G -XX:+UseG1GC -XX:+UseStringDeduplication"
53-
ExecStart=/srv/moera-node/moera-node-0.14.0.war
46+
ExecStart=/usr/bin/java -jar /srv/moera-node/moera-node-0.17.0.jar
5447
SuccessExitStatus=143
5548
StandardOutput=syslog
5649
StandardError=inherit
@@ -61,7 +54,7 @@ WantedBy=multi-user.target
6154
```
6255

6356
`User=` and `Group=` define the user and the group that will be used by
64-
the `moera-node` process. Do not forget to create the user and the group in your
57+
the `moera-node` process. Remember to create the user and the group in your
6558
system.
6659

6760
The WAR file is located in `/srv/moera-node` directory in the example above. If

0 commit comments

Comments
 (0)