优化bat脚本及shell脚本

This commit is contained in:
thinkgem
2018-04-17 20:55:22 +08:00
parent d9193835ef
commit f8562e1ccb
22 changed files with 91 additions and 50 deletions

View File

@@ -2,7 +2,7 @@
<configuration debug="false" scan="false">
<!-- Log file path -->
<property name="log.path" value="${logPath:-../../}/logs" />
<property name="log.path" value="${logPath:-../}/logs" />
<!-- Spring boot default -->
<include resource="org/springframework/boot/logging/logback/defaults.xml" />

View File

@@ -0,0 +1,20 @@
#!/bin/sh
# /**
# * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
# *
# * Author: ThinkGem@163.com
# *
# */
echo ""
echo "[信息] 运行Web工程。"
echo ""
JAVA_OPTS="$MAVEN_OPTS -Xms256m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m"
if [ -z "$JAVA_HOME" ]; then
RUN_JAVA=java
else
RUN_JAVA="$JAVA_HOME"/bin/java
fi
exec $RUN_JAVA -cp `dirname $0`/../ $JAVA_OPTS org.springframework.boot.loader.WarLauncher