Aggiorna crop logo navbar e script deploy
|
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 120 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 120 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 104 KiB |
@@ -3,6 +3,7 @@ setlocal
|
|||||||
|
|
||||||
set "DEPLOY_ROOT=C:\deploy\clinica_veterinaria_formiginese"
|
set "DEPLOY_ROOT=C:\deploy\clinica_veterinaria_formiginese"
|
||||||
set "APP_DIR=%DEPLOY_ROOT%\clinica-app"
|
set "APP_DIR=%DEPLOY_ROOT%\clinica-app"
|
||||||
|
set "DEPLOY_BRANCH="
|
||||||
|
|
||||||
echo === Deploy demo Clinica Veterinaria Formiginese ===
|
echo === Deploy demo Clinica Veterinaria Formiginese ===
|
||||||
echo.
|
echo.
|
||||||
@@ -19,13 +20,34 @@ if not exist "%APP_DIR%\" (
|
|||||||
|
|
||||||
echo [1/3] Aggiornamento repository di deploy...
|
echo [1/3] Aggiornamento repository di deploy...
|
||||||
pushd "%DEPLOY_ROOT%" || exit /b 1
|
pushd "%DEPLOY_ROOT%" || exit /b 1
|
||||||
git pull
|
|
||||||
if errorlevel 1 (
|
for /f "delims=" %%i in ('git branch --show-current') do set "DEPLOY_BRANCH=%%i"
|
||||||
|
|
||||||
|
if "%DEPLOY_BRANCH%"=="" (
|
||||||
echo.
|
echo.
|
||||||
echo ERRORE: git pull non riuscito.
|
echo ERRORE: impossibile determinare il branch corrente nella copia di deploy.
|
||||||
popd
|
popd
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
echo Branch deploy attivo: %DEPLOY_BRANCH%
|
||||||
|
|
||||||
|
git fetch origin
|
||||||
|
if errorlevel 1 (
|
||||||
|
echo.
|
||||||
|
echo ERRORE: git fetch non riuscito.
|
||||||
|
popd
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
git reset --hard origin/%DEPLOY_BRANCH%
|
||||||
|
if errorlevel 1 (
|
||||||
|
echo.
|
||||||
|
echo ERRORE: git reset del branch di deploy non riuscito.
|
||||||
|
popd
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
|
|||||||