Build: Added support of Personal mode for web static files

This commit is contained in:
Alexey Safronov 2021-09-14 10:05:53 +03:00
parent 6a609e6170
commit 5e86f7a148
2 changed files with 30 additions and 2 deletions

View File

@ -3,14 +3,24 @@ call runasadmin.bat "%~dpnx0"
if %errorlevel% == 0 (
PUSHD %~dp0..
echo "mode=%1"
REM call yarn wipe
call yarn install
REM call yarn build
call yarn build
IF "%1"=="" (
call yarn build
) ELSE (
call yarn build:personal
)
REM call yarn wipe
call yarn deploy
IF "%1"=="" (
call yarn deploy
) ELSE (
call yarn deploy:personal
)
REM copy nginx configurations to deploy folder
xcopy config\nginx\onlyoffice.conf build\deploy\nginx\ /E /R /Y

View File

@ -0,0 +1,18 @@
PUSHD %~dp0
call runasadmin.bat "%~dpnx0"
if %errorlevel% == 0 (
call start\stop.bat
PUSHD %~dp0..
echo "FRONT-END static"
call build\build.static.bat --personal
echo "BACK-END"
call build\build.backend.bat
start /b call build\start\start.bat
pause
)