app/backend/bin/update.sh

19 lines
420 B
Bash
Raw Normal View History

2025-10-13 14:57:11 +02:00
#!/bin/bash
set -e
echo "🔄 Pulling latest backend changes..."
git pull origin main
echo "📦 Installing PHP dependencies..."
composer install --no-interaction --prefer-dist --optimize-autoloader
echo "🗄️ Running migrations..."
php artisan migrate --force
echo "🧹 Clearing and caching config..."
php artisan config:cache
php artisan route:cache
php artisan view:cache
echo "✅ Backend update complete!"