fixed buildAndDeploy script
This commit is contained in:
parent
957aa8bd81
commit
7ac75bd206
@ -6,23 +6,27 @@ call runasadmin.bat "%~dpnx0"
|
|||||||
if %errorlevel% == 0 (
|
if %errorlevel% == 0 (
|
||||||
PUSHD %~dp0..
|
PUSHD %~dp0..
|
||||||
|
|
||||||
echo "mode=%1"
|
IF "%2"=="personal" (
|
||||||
|
echo "mode=%2"
|
||||||
|
) ELSE (
|
||||||
|
echo "mode="
|
||||||
|
)
|
||||||
|
|
||||||
REM call yarn wipe
|
REM call yarn wipe
|
||||||
call yarn install
|
call yarn install
|
||||||
|
|
||||||
REM call yarn build
|
REM call yarn build
|
||||||
IF "%1"=="" (
|
IF "%2"=="personal" (
|
||||||
call yarn build
|
|
||||||
) ELSE (
|
|
||||||
call yarn build:personal
|
call yarn build:personal
|
||||||
|
) ELSE (
|
||||||
|
call yarn build
|
||||||
)
|
)
|
||||||
|
|
||||||
REM call yarn wipe
|
REM call yarn wipe
|
||||||
IF "%1"=="" (
|
IF "%2"=="personal" (
|
||||||
call yarn deploy
|
|
||||||
) ELSE (
|
|
||||||
call yarn deploy:personal
|
call yarn deploy:personal
|
||||||
|
) ELSE (
|
||||||
|
call yarn deploy
|
||||||
)
|
)
|
||||||
|
|
||||||
REM copy nginx configurations to deploy folder
|
REM copy nginx configurations to deploy folder
|
||||||
|
@ -2,17 +2,17 @@ PUSHD %~dp0
|
|||||||
call runasadmin.bat "%~dpnx0"
|
call runasadmin.bat "%~dpnx0"
|
||||||
if %errorlevel% == 0 (
|
if %errorlevel% == 0 (
|
||||||
|
|
||||||
call start\stop.bat
|
call start\stop.bat nopause
|
||||||
|
|
||||||
PUSHD %~dp0..
|
PUSHD %~dp0..
|
||||||
|
|
||||||
echo "FRONT-END static"
|
echo "FRONT-END static"
|
||||||
call build\build.static.bat --personal
|
call build\build.static.bat nopause personal
|
||||||
|
|
||||||
echo "BACK-END"
|
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
|
pause
|
||||||
)
|
)
|
Loading…
Reference in New Issue
Block a user