-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.sh
executable file
·36 lines (29 loc) · 862 Bytes
/
dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Starts the model service in dev mode
#
# Parameters
# 1. WildFly version >= 10
VERSION=$1
# Prerequisites
if [[ "$#" -ne 1 ]]; then
echo "Illegal number of parameters. Please use $0 <wildfly-version>"
exit 1
fi
if ! [[ $VERSION =~ ^[0-9]+$ ]] ; then
echo "Illegal version. Must be numeric and >= 10."
exit 1
fi
if [[ "$VERSION" -lt "10" ]]; then
echo "Illegal version. Must be numeric and >= 10."
exit 1
fi
./mvnw \
-Ddebug=50$VERSION \
-Dquarkus.http.port=80$VERSION \
-Dquarkus.neo4j.uri=bolt://localhost:76$VERSION \
-Dquarkus.log.category.\"org.wildfly.modelgraph\".level=DEBUG \
-Dmgt.api.service.uri=http://localhost:9911 \
-Dmgt.model.service.uri=http://localhost:80$VERSION \
-Dmgt.neo4j.browser.uri=http://localhost:74$VERSION/browser \
-Dmgt.neo4j.bolt.uri=bolt://localhost:76$VERSION \
quarkus:dev