Build: Added support of Personal mode for web static files
This commit is contained in:
parent
6a609e6170
commit
5e86f7a148
@ -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
|
||||
|
18
build/buildAndDeploy.PERSONAL.bat
Normal file
18
build/buildAndDeploy.PERSONAL.bat
Normal 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
|
||||
)
|
Loading…
Reference in New Issue
Block a user