Step 3: Apply the Update
# Stop the application (if using a process manager)
sudo systemctl stop schedula
# Copy new files (excluding sensitive directories)
cp -r /temp/schedula/* /path/to/schedula/
cp -r /temp/schedula/.* /path/to/schedula/ 2>/dev/null || true
# Exclude sensitive files and directories
rm -rf /path/to/schedula/.env
rm -rf /path/to/schedula/storage/app/public/*
rm -rf /path/to/schedula/storage/logs/*
Step 4: Update Dependencies
# Install/update PHP dependencies
composer install --no-dev --optimize-autoloader
# Install/update Node.js dependencies (if applicable)
npm install --production
npm run build
Step 5: Run Database Migrations
# Run database migrations
php artisan migrate --force
# Clear application caches
php artisan config:clear
php artisan route:clear
php artisan view:clear
php artisan cache:clear
# Rebuild caches
php artisan config:cache
php artisan route:cache
Step 6: Restart the Application
# Start the application
sudo systemctl start schedula
# Verify the application is running
curl -I http://your-domain.com