Add frontend asset build to setup scripts

Added Step 11 to both setup.bat and setup.sh:
- Run npm install to install dependencies
- Run npm run build to compile Vite assets
- Creates public/build/manifest.json

This fixes the 'Vite manifest not found' error that occurred
when trying to login after fresh setup.

The node container is used for npm commands since the app
container doesn't have Node.js installed.
This commit is contained in:
2026-03-11 06:25:03 +02:00
parent 119eaf1873
commit 2ff7a24736
2 changed files with 14 additions and 0 deletions

View File

@@ -212,6 +212,13 @@ docker-compose exec -T app php artisan storage:link
echo Storage linked echo Storage linked
echo. echo.
REM Step 11: Build frontend assets
echo Building frontend assets...
docker-compose run --rm node npm install >nul 2>&1
docker-compose run --rm node npm run build >nul 2>&1
echo Frontend assets built
echo.
REM Done REM Done
echo. echo.
echo ======================================================== echo ========================================================

View File

@@ -187,6 +187,13 @@ docker-compose exec app php artisan storage:link
echo -e "${GREEN}✓ Storage linked${NC}" echo -e "${GREEN}✓ Storage linked${NC}"
echo "" echo ""
# Step 11: Build frontend assets
echo -e "${YELLOW}→ Building frontend assets...${NC}"
docker-compose run --rm node npm install >/dev/null 2>&1
docker-compose run --rm node npm run build >/dev/null 2>&1
echo -e "${GREEN}✓ Frontend assets built${NC}"
echo ""
# Done! # Done!
echo "" echo ""
echo -e "${GREEN}╔════════════════════════════════════════════════════════╗${NC}" echo -e "${GREEN}╔════════════════════════════════════════════════════════╗${NC}"