diff --git a/Deploy/bin/restart.bat b/Deploy/bin/restart.bat new file mode 100644 index 0000000..adc833c --- /dev/null +++ b/Deploy/bin/restart.bat @@ -0,0 +1,8 @@ +@echo off + +@echo 실행 프로그램들을 실행 합니다. + +SET CLASSPATH=C:\xit\IntelliJ-Workspace\Deploy\bin + +@START /d %CLASSPATH% /b shutdown.bat +@START /d %CLASSPATH% /b startup.bat \ No newline at end of file diff --git a/Deploy/bin/shutdown.bat b/Deploy/bin/shutdown.bat index a4012b9..1ab0b92 100644 --- a/Deploy/bin/shutdown.bat +++ b/Deploy/bin/shutdown.bat @@ -1,4 +1,4 @@ @echo off -for /F "delims=" %%i in (app-ci.pid) do set "PROC_ID=%%i" +for /F "delims=" %%i in (./app-ci.pid) do set "PROC_ID=%%i" taskkill /F /PID %PROC_ID% \ No newline at end of file diff --git a/Deploy/bin/startup-background.vbs b/Deploy/bin/startup-background.vbs new file mode 100644 index 0000000..19487e9 --- /dev/null +++ b/Deploy/bin/startup-background.vbs @@ -0,0 +1,2 @@ +Set objShell = CreateObject("Shell.Application") +objShell.ShellExecute ".\restart.bat", "/c lodctr.exe /r","","runas",0 \ No newline at end of file diff --git a/Deploy/bin/startup.bat b/Deploy/bin/startup.bat index 45da716..529a33a 100644 --- a/Deploy/bin/startup.bat +++ b/Deploy/bin/startup.bat @@ -4,5 +4,5 @@ rem Started... rem java -jar ..\webapp\ci-1.0.0.war rem Started background... -@START /b shutdown.bat +rem @START /b .\shutdown.bat @START /b ..\java\corretto-1.8.0_332\bin\java_app-ci "-Dspring.profiles.active=prod" -jar ..\webapp\ci-1.0.0.war \ No newline at end of file