docs(cache): add comprehensive cache configuration and permission handling guides
- Introduce `cache-configuration.md` for detailed instructions on cache setup, permission troubleshooting, and best practices. - Add `cache-permissions-quick-fix.md` for concise resolutions to common permission errors. - Include a detailed `FILECACHE_PERMISSION_FIX_PLAN.md` outlining solutions for permission-related issues. - Enhance `docker-entrypoint.sh` with permission fixes for multi-user caches. - Update `Makefile` with cache clear commands for local and staging environments. - Improve `FileCache` for graceful degradation on permission errors, ensuring reliability under multi-user scenarios.
This commit is contained in:
12
Makefile
12
Makefile
@@ -276,6 +276,16 @@ logs-staging-php: ## Show PHP application logs from staging-app (log files)
|
||||
@echo "📋 Showing PHP application logs from staging-app..."
|
||||
@ssh -i ~/.ssh/production deploy@94.16.110.151 "docker exec -i staging-app tail -f /var/www/html/storage/logs/*.log 2>/dev/null || docker exec -i staging-app ls -la /var/www/html/storage/logs/ 2>/dev/null || echo 'Log directory /var/www/html/storage/logs/ not accessible'"
|
||||
|
||||
cache-clear-staging: ## Clear cache on staging server
|
||||
@echo "🗑️ Clearing cache on staging server..."
|
||||
@ssh -i ~/.ssh/production deploy@94.16.110.151 "cd ~/deployment/stacks/staging && docker compose exec staging-app php console.php cache:clear"
|
||||
@echo "✅ Cache cleared on staging server"
|
||||
|
||||
cache-clear: ## Clear cache locally
|
||||
@echo "🗑️ Clearing cache locally..."
|
||||
docker exec php php console.php cache:clear
|
||||
@echo "✅ Cache cleared locally"
|
||||
|
||||
# SSL Certificate Management (PHP Framework Integration)
|
||||
ssl-init: ## Initialize Let's Encrypt certificates
|
||||
@echo "🔒 Initializing SSL certificates..."
|
||||
@@ -393,4 +403,4 @@ env-validate: ## Validiert ENV-Files (Base+Override Pattern)
|
||||
fi
|
||||
@echo "💡 Framework lädt: .env.base → .env.local → System ENV"
|
||||
|
||||
.PHONY: up down build restart logs ps phpinfo deploy setup clean clean-coverage status fix-ssh-perms setup-ssh setup-autossh ssh ssh-production ssh-git ssh-status ssh-logs test test-coverage test-coverage-html test-unit test-framework test-domain test-watch test-parallel test-profile test-filter security-check security-audit-json security-check-prod update-production restart-production deploy-production-quick status-production logs-production logs-staging logs-staging-php ssl-init ssl-init-staging ssl-test ssl-renew ssl-status ssl-backup push-staging env-base env-local env-check env-validate
|
||||
.PHONY: up down build restart logs ps phpinfo deploy setup clean clean-coverage status fix-ssh-perms setup-ssh setup-autossh ssh ssh-production ssh-git ssh-status ssh-logs test test-coverage test-coverage-html test-unit test-framework test-domain test-watch test-parallel test-profile test-filter security-check security-audit-json security-check-prod update-production restart-production deploy-production-quick status-production logs-production logs-staging logs-staging-php cache-clear-staging cache-clear ssl-init ssl-init-staging ssl-test ssl-renew ssl-status ssl-backup push-staging env-base env-local env-check env-validate
|
||||
|
||||
Reference in New Issue
Block a user