Files
2026-03-18 17:07:02 +01:00

65 lines
1.3 KiB
Bash
Executable File

case "$1" in
"1")
git pull
composer update
php artisan optimize
;;
"2")
echo "droping tables disabled"
exit;
php artisan migrate:fresh --force
php artisan shield:generate --all
php artisan optimize:clear
php artisan filament:assets
php artisan optimize
php artisan db:seed --force
;;
"3")
php artisan filament:optimize-clear
php artisan view:clear
php artisan optimize:clear
php artisan route:clear
php artisan cache:clear
php artisan icons:clear
php artisan config:clear
php artisan optimize
npm run build
;;
"4")
chown -R apache:apache .
;;
"5")
php artisan storage:link
;;
"6")
php artisan filament:assets
;;
"7")
php artisan db:seed --force
;;
"8")
php artisan cache:clear
php artisan config:clear
php artisan view:clear
;;
*)
echo ""
echo "--------------------------"
echo "setup nuh lives"
echo "--------------------------"
echo "1 => git pull & composer update & optimize"
echo "2 => a db fresh"
echo "3 => empty cache & optimize"
echo "4 => chown -R apache:apache ."
echo "5 => a storage:link"
echo "6 => a filament:assets (copy to prod)"
echo "7 => a db:seed --force"
echo "8 => a cache:clear view:clear"
echo "--------------------------"
echo ""
;;
esac