refactoring build scripts

This commit is contained in:
Alexey Bannov 2021-10-26 16:39:00 +03:00
parent 3ce15a9329
commit 32240717ff
6 changed files with 28 additions and 8 deletions

View File

@ -15,4 +15,6 @@ if %errorlevel% == 0 (
echo.
pause
if "%1"=="nopause" goto start
pause
:start

View File

@ -1,5 +1,8 @@
@echo off
PUSHD %~dp0
call runasadmin.bat "%~dpnx0"
if %errorlevel% == 0 (
PUSHD %~dp0..
@ -40,10 +43,16 @@ powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-projects.co
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-studio.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-studio.conf"
REM restart nginx
echo service nginx stop
call sc stop nginx
REM sleep 5 seconds
call ping 127.0.0.1 -n 6 > nul
echo service nginx start
call sc start nginx
)
)
if "%1"=="nopause" goto start
pause
:start

View File

@ -6,7 +6,7 @@ call runasadmin.bat "%~dpnx0"
if %errorlevel% == 0 (
call start\stop.bat
call start\stop.bat nopause
PUSHD %~dp0..
@ -14,9 +14,9 @@ echo "FRONT-END static"
call build\build.static.bat
echo "BACK-END"
call build\build.backend.bat
call build\build.backend.bat nopause
call build\start\start.bat
call build\start\start.bat nopause
pause
)

View File

@ -11,4 +11,7 @@ if %errorlevel% == 0 (
)
echo.
pause
if "%1"=="nopause" goto start
pause
:start

View File

@ -10,4 +10,7 @@ if %errorlevel% == 0 (
)
echo.
pause
if "%1"=="nopause" goto start
pause
:start

View File

@ -10,4 +10,7 @@ if %errorlevel% == 0 (
)
echo.
pause
if "%1"=="nopause" goto start
pause
:start