Skip to content

Commit

Permalink
Fix using JAVA_OPTS
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Feb 3, 2025
1 parent a6b7443 commit 0e0b41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/monit_restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ case $ACTION in
kill $(cat target/universal/stage/RUNNING_PID)
rm target/universal/stage/RUNNING_PID
fi
JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -DpreferIPv4Stack"
export JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -DpreferIPv4Stack"
sbt clean
sbt --java-home $JAVA_HOME stage
./target/universal/stage/bin/lobid-resources-web -Dhttp.port=$PORT -no-version-check > monit_start.log &
Expand Down

0 comments on commit 0e0b41c

Please sign in to comment.