# Commands to run on server to update Domain Rotator with full features # Copy and paste these commands one by one on the server # 1. Backup current files cp -r /var/www/html /var/www/html-backup-$(date +%Y%m%d-%H%M%S) # 2. Extract new package cd /var/www/html tar -xzf /tmp/domain-rotator-full.tar.gz -C /var/www/html --strip-components=1 # 3. Set permissions chown -R www-data:www-data /var/www/html chmod -R 755 /var/www/html chmod -R 775 /var/www/html/storage 2>/dev/null || echo "Storage directory not found" chmod -R 775 /var/www/html/bootstrap/cache 2>/dev/null || echo "Bootstrap cache directory not found" # 4. Install PHP dependencies composer install --no-dev --optimize-autoloader # 5. Create .env file cat > .env << 'EOF' APP_NAME="Domain Rotator" APP_ENV=production APP_KEY= APP_DEBUG=false APP_URL=https://rotator-jago.online LOG_CHANNEL=stack LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=domain_rotator DB_USERNAME=domain_rotator DB_PASSWORD=SecurePassword123! BROADCAST_DRIVER=log CACHE_DRIVER=file FILESYSTEM_DISK=local QUEUE_CONNECTION=sync SESSION_DRIVER=file SESSION_LIFETIME=120 MEMCACHED_HOST=127.0.0.1 REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_MAILER=smtp MAIL_HOST=mailpit MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null MAIL_FROM_ADDRESS="hello@example.com" MAIL_FROM_NAME="${APP_NAME}" AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION=us-east-1 AWS_BUCKET= AWS_USE_PATH_STYLE_ENDPOINT=false PUSHER_APP_ID= PUSHER_APP_KEY= PUSHER_APP_SECRET= PUSHER_HOST= PUSHER_PORT=443 PUSHER_SCHEME=https PUSHER_APP_CLUSTER=mt1 VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" VITE_PUSHER_HOST="${PUSHER_HOST}" VITE_PUSHER_PORT="${PUSHER_PORT}" VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" EOF # 6. Generate app key php artisan key:generate # 7. Run migrations php artisan migrate --force # 8. Seed database php artisan db:seed --force # 9. Clear caches php artisan config:cache php artisan route:cache php artisan view:cache # 10. Cleanup rm -f /tmp/domain-rotator-full.tar.gz echo "✅ Domain Rotator updated with full features!" echo "🌐 Access at: https://rotator-jago.online"