18 lines
420 B
Bash
Executable file
18 lines
420 B
Bash
Executable file
#!/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!"
|