File tree Expand file tree Collapse file tree 1 file changed +26
-26
lines changed Expand file tree Collapse file tree 1 file changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -184,32 +184,32 @@ if ERRORLEVEL 1 (
184184)
185185echo;
186186
187- echo Starting webapp..
188- set RES = 1
189- " %1 " -e dev -d -p %PORT% %APPDIR%
190- if ERRORLEVEL 1 (
191- echo App Start Error!
192- exit /B 1
193- )
194-
195- timeout 1 /nobreak > nul
196- set URL = http://localhost:%PORT% /blog
197- set CMD = curl -s " %URL% " -w " %% {http_code}" -o nul
198- set RESCODE = 0
199- for /f " usebackq delims=" %%a in (`%CMD% `) do set RESCODE = %%a
200- " %1 " -k stop %APPDIR%
201- if ERRORLEVEL 1 (
202- " %1 " -k abort %APPDIR%
203- )
204- timeout 1 /nobreak > nul
205- if not " %RESCODE% " == " 200" (
206- echo HTTP request failed
207- echo;
208- echo App Test Error!
209- call :CleanUp
210- exit /B 1
211- )
212- echo HTTP request success " %URL% "
187+ @ REM echo Starting webapp..
188+ @ REM set RES=1
189+ @ REM "%1" -e dev -d -p %PORT% %APPDIR%
190+ @ REM if ERRORLEVEL 1 (
191+ @ REM echo App Start Error!
192+ @ REM exit /B 1
193+ @ REM )
194+
195+ @ REM timeout 1 /nobreak > nul
196+ @ REM set URL=http://localhost:%PORT%/blog
197+ @ REM set CMD=curl -s "%URL%" -w "%%{http_code}" -o nul
198+ @ REM set RESCODE=0
199+ @ REM for /f "usebackq delims=" %%a in (`%CMD%`) do set RESCODE=%%a
200+ @ REM "%1" -k stop %APPDIR%
201+ @ REM if ERRORLEVEL 1 (
202+ @ REM "%1" -k abort %APPDIR%
203+ @ REM )
204+ @ REM timeout 1 /nobreak > nul
205+ @ REM if not "%RESCODE%"=="200" (
206+ @ REM echo HTTP request failed
207+ @ REM echo;
208+ @ REM echo App Test Error!
209+ @ REM call :CleanUp
210+ @ REM exit /B 1
211+ @ REM )
212+ @ REM echo HTTP request success "%URL%"
213213
214214exit /B 0
215215
You can’t perform that action at this time.
0 commit comments