Files
beauty-bookings/scripts/rebuild-dev.cmd

30 lines
722 B
Batchfile

@echo off
docker compose -f docker-compose.yml down
if errorlevel 1 exit /b 1
git pull
if errorlevel 1 exit /b 1
echo Building application locally...
pnpm install --frozen-lockfile
if errorlevel 1 exit /b 1
pnpm run build
if errorlevel 1 exit /b 1
docker compose -f docker-compose.yml build
if errorlevel 1 exit /b 1
docker compose -f docker-compose.yml up -d
if errorlevel 1 exit /b 1
echo Waiting for container to start...
@timeout /t 5 /nobreak >nul
echo Verifying bcrypt installation in container...
docker compose -f docker-compose.yml exec stargirlnails node -e "require('bcrypt')" && echo bcrypt OK || echo bcrypt FAILED
if errorlevel 1 exit /b 1
docker compose -f docker-compose.yml logs -f stargirlnails