fixed buildAndDeploy script

This commit is contained in:
Alexey Bannov 2021-10-27 13:49:19 +03:00
parent 957aa8bd81
commit 7ac75bd206
2 changed files with 15 additions and 11 deletions

View File

@ -6,23 +6,27 @@ call runasadmin.bat "%~dpnx0"
if %errorlevel% == 0 (
PUSHD %~dp0..
echo "mode=%1"
IF "%2"=="personal" (
echo "mode=%2"
) ELSE (
echo "mode="
)
REM call yarn wipe
call yarn install
REM call yarn build
IF "%1"=="" (
call yarn build
) ELSE (
IF "%2"=="personal" (
call yarn build:personal
) ELSE (
call yarn build
)
REM call yarn wipe
IF "%1"=="" (
call yarn deploy
) ELSE (
IF "%2"=="personal" (
call yarn deploy:personal
) ELSE (
call yarn deploy
)
REM copy nginx configurations to deploy folder

View File

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