🔖 bat script
parent
fe4ab73466
commit
53a209b76d
|
@ -0,0 +1,9 @@
|
|||
rem -------------------------------------------------
|
||||
rem 本脚本用于编译打包 JavaWebApp
|
||||
rem 环境要求:Maven + JDK8
|
||||
rem -------------------------------------------------
|
||||
|
||||
@echo off
|
||||
cd "../javaapp"
|
||||
mvn clean package -Dmaven.test.skip=true
|
||||
pause
|
|
@ -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
|
||||
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue