2018-02-24 22:38:44 +08:00
@ echo off
rem /**
rem * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
rem *
rem * Author: ThinkGem@163.com
rem */
echo .
echo [<5B> <> Ϣ] <20> <> <EFBFBD> <EFBFBD> Web<65> <62> <EFBFBD> ̣<EFBFBD> <CCA3> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Web<65> <62> <EFBFBD> ̡<EFBFBD>
echo .
%~d0
cd %~dp0
2018-07-13 22:15:00 +08:00
rem <20> <> <EFBFBD> <EFBFBD> Web<65> <62> <EFBFBD> ̣<EFBFBD> <CCA3> <EFBFBD> ʼ <EFBFBD> <CABC>
2018-02-24 22:38:44 +08:00
cd ..
call mvn clean package spring-boot:repackage -Dmaven.test.skip=true -U
2018-04-17 20:55:22 +08:00
cd target
2018-07-13 22:15:00 +08:00
rem <20> <> <EFBFBD> <EFBFBD> Web<65> <62> <EFBFBD> ̣<EFBFBD> <CCA3> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2018-02-24 22:38:44 +08:00
2018-07-02 23:00:37 +08:00
title %cd%
2018-07-13 22:15:00 +08:00
rem <20> Ż<EFBFBD> JVM<56> <4D> <EFBFBD> <EFBFBD>
2019-02-03 21:56:32 +08:00
set " JAVA_OPTS=-Xms256m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m "
2018-07-13 22:15:00 +08:00
2018-10-14 21:32:41 +08:00
rem <20> <> ʽ һ <CABD> <D2BB> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⲿ<EFBFBD> Զ<EFBFBD> <D4B6> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ļ<EFBFBD> <C4BC> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 飩
2019-02-03 21:56:32 +08:00
rem set "JAVA_OPTS=%JAVA_OPTS% -Dspring.config.location=%cd%\app.yml"
2018-07-02 23:00:37 +08:00
2018-10-14 21:32:41 +08:00
rem <20> <> ʽ <EFBFBD> <CABD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> û<EFBFBD> <C3BB> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ƣ<EFBFBD> <C6A3> <EFBFBD> <EFBFBD> ز<EFBFBD> ͬ<EFBFBD> <CDAC> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ļ<EFBFBD>
2019-02-03 21:56:32 +08:00
rem set "JAVA_OPTS=%JAVA_OPTS% -Dspring.profiles.active=prod"
2018-10-14 21:32:41 +08:00
2018-07-02 23:00:37 +08:00
if " %JAVA_HOME% " == " " goto noJavaHome
if not " %JAVA_HOME% " == " " goto gotJavaHome
goto end
: noJavaHome
set RUN_JAVA = java
goto runJava
: gotJavaHome
2018-09-22 21:12:45 +08:00
set " RUN_JAVA= %JAVA_HOME% \bin\java "
2018-07-02 23:00:37 +08:00
goto runJava
: runJava
2018-07-13 22:15:00 +08:00
rem <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> web.war Ϊ<> <CEAA> <EFBFBD> <EFBFBD> war <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
2018-07-02 23:00:37 +08:00
call " %RUN_JAVA% " %JAVA_OPTS% -jar web.war
goto end
2018-02-24 22:38:44 +08:00
2018-07-02 23:00:37 +08:00
: end
2018-02-24 22:38:44 +08:00
pause