Resolved multiple critical discovery system issues: ## Discovery System Fixes - Fixed console commands not being discovered on first run - Implemented fallback discovery for empty caches - Added context-aware caching with separate cache keys - Fixed object serialization preventing __PHP_Incomplete_Class ## Cache System Improvements - Smart caching that only caches meaningful results - Separate caches for different execution contexts (console, web, test) - Proper array serialization/deserialization for cache compatibility - Cache hit logging for debugging and monitoring ## Object Serialization Fixes - Fixed DiscoveredAttribute serialization with proper string conversion - Sanitized additional data to prevent object reference issues - Added fallback for corrupted cache entries ## Performance & Reliability - All 69 console commands properly discovered and cached - 534 total discovery items successfully cached and restored - No more __PHP_Incomplete_Class cache corruption - Improved error handling and graceful fallbacks ## Testing & Quality - Fixed code style issues across discovery components - Enhanced logging for better debugging capabilities - Improved cache validation and error recovery Ready for production deployment with stable discovery system. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
---
|
|
# Production Inventory for michaelschiemer.de
|
|
# Container-based PHP Framework Infrastructure
|
|
|
|
all:
|
|
vars:
|
|
# Environment configuration
|
|
environment: production
|
|
project_name: michaelschiemer
|
|
domain_name: michaelschiemer.de
|
|
|
|
# Container configuration
|
|
container_registry: docker.io
|
|
image_repository: michaelschiemer/php-framework
|
|
|
|
# SSL Configuration
|
|
ssl_email: kontakt@michaelschiemer.de
|
|
ssl_provider: letsencrypt
|
|
|
|
# Security settings
|
|
security_level: high
|
|
firewall_strict_mode: true
|
|
fail2ban_enabled: true
|
|
|
|
# Docker configuration
|
|
docker_edition: ce
|
|
docker_version: "24.0"
|
|
|
|
# Monitoring
|
|
monitoring_enabled: true
|
|
health_checks_enabled: true
|
|
|
|
# Backup configuration - parameterized from CI
|
|
backup_enabled: "{{ BACKUP_ENABLED | default(true) | bool }}"
|
|
backup_retention_days: "{{ BACKUP_RETENTION_DAYS | default(30) }}"
|
|
|
|
# CDN configuration
|
|
cdn_update: "{{ CDN_UPDATE | default(false) | bool }}"
|
|
|
|
children:
|
|
web_servers:
|
|
hosts:
|
|
michaelschiemer-prod-web-01:
|
|
ansible_host: 94.16.110.151
|
|
ansible_user: deploy
|
|
ansible_ssh_private_key_file: ~/.ssh/production
|
|
server_role: primary
|
|
|
|
# Server specifications
|
|
cpu_cores: 4
|
|
memory_gb: 8
|
|
disk_gb: 80
|
|
|
|
# Production resource limits
|
|
max_containers: 10
|
|
docker_memory_limit: 6g
|
|
docker_cpu_limit: 3.5
|
|
|
|
vars:
|
|
# Production environment variables
|
|
log_level: warning
|
|
deploy_timeout: 300
|
|
health_check_retries: 15
|
|
rollback_enabled: true |