Method 2: Manual Update

Complete guide for Method 2: Manual Update

Step 1: Prepare Your Environment

# Create a backup directory
mkdir -p /backup/schedula-$(date +%Y%m%d)

# Backup your current installation
cp -r /path/to/schedula /backup/schedula-$(date +%Y%m%d)/

# Backup your database
mysqldump -u username -p database_name > /backup/schedula-$(date +%Y%m%d)/database.sql

Step 2: Download the Update

  1. Download the latest Schedula version from the official repository
  1. Extract the files to a temporary directory
  1. Compare the new files with your current installation
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


×