File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ HOME="/home/sol"
2525
2626# it is important to set the proper locale
2727. $HOME /.locale
28+ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
2829JAVA_OPTS=$( echo " $JAVA_OPTS " | sed ' s#,#\ #g' )
2930
3031cd $HOME /git/$REPO
@@ -34,9 +35,9 @@ case $ACTION in
3435 kill $( cat target/universal/stage/RUNNING_PID)
3536 rm target/universal/stage/RUNNING_PID
3637 fi
37- sbt clean
38- sbt --java-home $JAVA_HOME stage
39- JAVA_OPTS= " $JAVA_OPTS -XX:+ExitOnOutOfMemoryError " ./target/universal/stage/bin/nwbib -Dhttp.port=$PORT
38+ export JAVA_OPTS= " $JAVA_OPTS -XX:+ExitOnOutOfMemoryError -DpreferIPv4Stack "
39+ sbt --java-home $JAVA_HOME stage >> ./target/universal/stage/logs/application.log 2>&1
40+ ./target/universal/stage/bin/nwbib -Dhttp.port=$PORT -no-version-check >> ./target/universal/stage/logs/application.log 2>&1
4041 ;;
4142 stop)
4243 kill $( cat target/universal/stage/RUNNING_PID)
You can’t perform that action at this time.
0 commit comments