refactoring build scripts
This commit is contained in:
parent
3ce15a9329
commit
32240717ff
@ -15,4 +15,6 @@ if %errorlevel% == 0 (
|
||||
|
||||
echo.
|
||||
|
||||
if "%1"=="nopause" goto start
|
||||
pause
|
||||
:start
|
@ -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
|
@ -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
|
||||
)
|
@ -11,4 +11,7 @@ if %errorlevel% == 0 (
|
||||
)
|
||||
|
||||
echo.
|
||||
|
||||
if "%1"=="nopause" goto start
|
||||
pause
|
||||
:start
|
@ -10,4 +10,7 @@ if %errorlevel% == 0 (
|
||||
)
|
||||
|
||||
echo.
|
||||
|
||||
if "%1"=="nopause" goto start
|
||||
pause
|
||||
:start
|
@ -10,4 +10,7 @@ if %errorlevel% == 0 (
|
||||
)
|
||||
|
||||
echo.
|
||||
|
||||
if "%1"=="nopause" goto start
|
||||
pause
|
||||
:start
|
Loading…
Reference in New Issue
Block a user