🔖 bat script

pull/2/head
Zhang Peng 2018-07-04 22:55:47 +08:00
parent fe4ab73466
commit 53a209b76d
3 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,9 @@
rem -------------------------------------------------
rem 本脚本用于编译打包 JavaWebApp
rem 环境要求Maven + JDK8
rem -------------------------------------------------
@echo off
cd "../javaapp"
mvn clean package -Dmaven.test.skip=true
pause

View File

@ -0,0 +1,16 @@
rem -------------------------------------------------
rem 启动 Demo1
rem 1. 启动 Nginx
rem 2. 启动一个 JavaApp访问地址为localhost:9001
rem -------------------------------------------------
@echo off
echo ">>>> 1. Start nginx"
cd "../nginx-1.14.0"
call nginx-start.bat
echo ">>>> 2. Start javaapp - localhost:9001"
cd "../javaapp"
java -Dtomcat.connector.port=9001 -cp "target/JavaWebApp/WEB-INF/classes;target/JavaWebApp/WEB-INF/lib/*" io.github.dunwu.app.Main
pause

View File

@ -1,2 +0,0 @@
java -Dtomcat.context.path=/app -Dtomcat.connector.port=8091 -cp "./../target/JavaWebApp/WEB-INF/classes;./../target/JavaWebApp/WEB-INF/lib/*" io.github.dunwu.app.Main
pause