Enable Discovery debug logging for production troubleshooting

- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
2025-08-11 20:13:26 +02:00
parent 59fd3dd3b1
commit 55a330b223
3683 changed files with 2956207 additions and 16948 deletions

View File

@@ -30,6 +30,9 @@ reload: ## Dump Autoload & Restart PHP
docker-compose exec php composer dump-autoload -o
docker-compose restart php
flush-redis: ## Clear Redis cache (FLUSHALL)
docker exec redis redis-cli FLUSHALL
# Wähle dev- oder prod-PHP-Konfig je nach ENV
phpinfo:
@@ -43,14 +46,46 @@ setup: ## Führt Ansible Setup aus
deploy: ## Führt Ansible Deploy aus
./bin/deploy
test: ## Führt Tests aus (Platzhalter)
./bin/test
test: ## Führt alle Tests aus
docker exec php ./vendor/bin/pest
test-coverage: ## Führt Tests mit Coverage-Report aus
docker exec php ./vendor/bin/pest --coverage
test-coverage-html: ## Generiert HTML Coverage-Report
docker exec php ./vendor/bin/pest --coverage-html coverage-html
@echo "📊 Coverage-Report verfügbar unter: coverage-html/index.html"
test-unit: ## Führt nur Unit-Tests aus
docker exec php ./vendor/bin/pest tests/Unit/
test-framework: ## Führt nur Framework-Tests aus
docker exec php ./vendor/bin/pest tests/Framework/
test-domain: ## Führt nur Domain-Tests aus
docker exec php ./vendor/bin/pest tests/Domain/
test-watch: ## Führt Tests im Watch-Modus aus
docker exec php ./vendor/bin/pest --watch
test-parallel: ## Führt Tests parallel aus
docker exec php ./vendor/bin/pest --parallel
test-profile: ## Profiling der langsamsten Tests
docker exec php ./vendor/bin/pest --profile
test-filter: ## Führt spezifische Tests aus (Usage: make test-filter FILTER="EventDispatcher")
docker exec php ./vendor/bin/pest --filter="$(FILTER)"
# Cleanup temporärer/metadaten-Dateien
clean: ## Entfernt temporäre Dateien
find . -type f -name "*Zone.Identifier" -delete
find . -type f -name "*.retry" -delete
clean-coverage: ## Entfernt Coverage-Reports
rm -rf coverage-html/ coverage-xml/ coverage.txt
@echo "🧹 Coverage-Reports entfernt"
static: ## Generate Static Files
./bin/generate-static.php
@@ -74,8 +109,8 @@ help: ## Zeigt diese Hilfe an
@echo ""
console:
docker exec -it php php console.php $(Args)
console: ## Run console commands (Usage: make console ARGS="command arguments")
docker exec -it php php console.php $(ARGS)
@@ -94,6 +129,12 @@ cs-fix-file: ## Fix code style for a specific file
cs-fix: ## Fix code style for all PHP files
docker compose exec -e PHP_CS_FIXER_IGNORE_ENV=1 php ./vendor/bin/php-cs-fixer fix
phpstan: ## Run PHPStan static analysis
@$(MAKE) composer ARGS="phpstan"
phpstan-baseline: ## Generate PHPStan baseline
@$(MAKE) composer ARGS="phpstan-baseline"
setup-ssh: ## SSH-Schlüssel korrekt einrichten
mkdir -p ~/.ssh
cp /mnt/c/Users/Mike/.ssh/test.michaelschiemer.de ~/.ssh/staging
@@ -136,4 +177,4 @@ check: ## Serververbindung prüfen
# make staging TAGS="deploy,check"
# make setup-server LIMIT="staging" TAGS="docker"
.PHONY: up down build restart logs ps phpinfo deploy setup clean status fix-ssh-perms setup-ssh
.PHONY: up down build restart logs ps phpinfo deploy setup clean clean-coverage status fix-ssh-perms setup-ssh test test-coverage test-coverage-html test-unit test-framework test-domain test-watch test-parallel test-profile test-filter