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:
@@ -212,6 +212,13 @@ docker-compose exec -T app php artisan storage:link
|
||||
echo Storage linked
|
||||
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
|
||||
echo.
|
||||
echo ========================================================
|
||||
|
||||
7
setup.sh
7
setup.sh
@@ -187,6 +187,13 @@ docker-compose exec app php artisan storage:link
|
||||
echo -e "${GREEN}✓ Storage linked${NC}"
|
||||
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!
|
||||
echo ""
|
||||
echo -e "${GREEN}╔════════════════════════════════════════════════════════╗${NC}"
|
||||
|
||||
Reference in New Issue
Block a user