Added BE auto-updater / Server config / Fixed #1266

This commit is contained in:
Anuken
2019-12-28 16:30:40 -05:00
parent c0c0ffa682
commit e1bf8bdab1
17 changed files with 349 additions and 144 deletions

View File

@@ -5,4 +5,12 @@ if [[ $# -eq 0 ]] ; then
fi
./gradlew server:dist -Pbuildversion=$1
while true; do
#auto-restart until ctrl-c or exit 0
java -jar -XX:+HeapDumpOnOutOfMemoryError server/build/libs/server-release.jar
excode=$?
if [ $excode -eq 0 ] || [ $excode -eq 130 ]; then
exit 0
fi
done