Jan 11, 2025
0
Level 1
Forge Build Fails Without any errors
Hello, Guys i need some help i don't know why, but suddenly out of nowhere my Laraver Forge builds started failing I stopped updating the app for 2 months after that I changed some UI parts and wanted to push it to production but Laravel Forge started acting weird failing builds without any single error! also, building takes a lot of time! like 12 mins I think (when I run using ssh it builds perfectly but slow as I told 12 mins)!
This is my deployment scripts
cd /home/forge/x
git pull origin $FORGE_SITE_BRANCH
$FORGE_COMPOSER install --no-dev --no-interaction --prefer-dist --optimize-autoloader
( flock -w 10 9 || exit 1
echo 'Restarting FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock
if [ -f artisan ]; then
$FORGE_PHP artisan migrate --force
fi
npm install --legacy-peer-deps
npm run build
$FORGE_PHP artisan optimize:clear
$FORGE_PHP artisan optimize
$FORGE_PHP artisan queue:restart
and this is where script fails without any errors or anything at all (deployment log )
vite v5.4.11 building for production...
Duplicated imports "usePermission", the one from "@vueuse/core" has been ignored and "/home/forge/javadivolleyball.ir/resources/js/composables/permissions.js" is used
transforming...
✓ 1124 modules transformed.
rendering chunks...
computing gzip size...
Please or to participate in this conversation.