F
Filamentβ€’6mo ago
ПIᄃK

Laravel filament UI not loading correctly after deployment

Hello everyone, I have a problem that filament isnt loading correctly after deploying it via ploi. Im using the following deployment script:
cd /home/ploi/demo.nrweb.agency

git reset --hard && git clean -df

git pull origin main
npm install
echo "" | sudo -S service php8.1-fpm reload
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev

npm ci
npm run build

php artisan migrate --force
php artisan config:clear
php artisan event:clear
php artisan route:clear
php artisan view:clear

php artisan storage:link

php artisan queue:restart

npm run build

echo "πŸš€ Application deployed!"
cd /home/ploi/demo.nrweb.agency

git reset --hard && git clean -df

git pull origin main
npm install
echo "" | sudo -S service php8.1-fpm reload
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev

npm ci
npm run build

php artisan migrate --force
php artisan config:clear
php artisan event:clear
php artisan route:clear
php artisan view:clear

php artisan storage:link

php artisan queue:restart

npm run build

echo "πŸš€ Application deployed!"
Sometimes it worked fine but some time I need to run npm run build after the deployment is doneon the server. After a few hours its the same problem again so filament (maybe the css) isnt loading correctly again. Is there any fix for it? thanks in advance
No description
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin