feat(Production): Complete production deployment infrastructure

- Add comprehensive health check system with multiple endpoints
- Add Prometheus metrics endpoint
- Add production logging configurations (5 strategies)
- Add complete deployment documentation suite:
  * QUICKSTART.md - 30-minute deployment guide
  * DEPLOYMENT_CHECKLIST.md - Printable verification checklist
  * DEPLOYMENT_WORKFLOW.md - Complete deployment lifecycle
  * PRODUCTION_DEPLOYMENT.md - Comprehensive technical reference
  * production-logging.md - Logging configuration guide
  * ANSIBLE_DEPLOYMENT.md - Infrastructure as Code automation
  * README.md - Navigation hub
  * DEPLOYMENT_SUMMARY.md - Executive summary
- Add deployment scripts and automation
- Add DEPLOYMENT_PLAN.md - Concrete plan for immediate deployment
- Update README with production-ready features

All production infrastructure is now complete and ready for deployment.
This commit is contained in:
2025-10-25 19:18:37 +02:00
parent caa85db796
commit fc3d7e6357
83016 changed files with 378904 additions and 20919 deletions

View File

@@ -3,12 +3,12 @@
declare(strict_types=1);
use App\Domain\Common\ValueObject\Email;
use App\Framework\Core\ValueObjects\Url;
use App\Framework\Email\CssInliner;
use App\Framework\Email\Emails\PasswordResetEmail;
use App\Framework\Email\Emails\WelcomeEmail;
use App\Framework\Email\EmailService;
use App\Framework\Email\EmailTemplateRenderer;
use App\Framework\Http\Url\UrlFactory;
use App\Framework\Logging\Logger;
use App\Framework\Mail\MailerInterface;
use App\Framework\Mail\Priority;
@@ -101,7 +101,7 @@ describe('WelcomeEmail', function () {
to: new Email('user@example.com'),
userName: 'John Doe',
companyName: 'Test Company',
loginUrl: Url::from('https://example.com/login'),
loginUrl: UrlFactory::parse('https://example.com/login'),
referralCode: 'REF123'
);
@@ -119,7 +119,7 @@ describe('WelcomeEmail', function () {
to: new Email('user@example.com'),
userName: '', // Empty name should fail
companyName: 'Test Company',
loginUrl: Url::from('https://example.com/login')
loginUrl: UrlFactory::parse('https://example.com/login')
);
})->toThrow(InvalidArgumentException::class);
@@ -128,7 +128,7 @@ describe('WelcomeEmail', function () {
to: new Email('user@example.com'),
userName: 'John Doe',
companyName: '', // Empty company should fail
loginUrl: Url::from('https://example.com/login')
loginUrl: UrlFactory::parse('https://example.com/login')
);
})->toThrow(InvalidArgumentException::class);
});
@@ -142,7 +142,7 @@ describe('WelcomeEmail', function () {
to: new Email('user@example.com'),
userName: 'John Doe',
companyName: 'Test Company',
loginUrl: Url::from('https://example.com/login'),
loginUrl: UrlFactory::parse('https://example.com/login'),
referralCode: 'REF123'
);
@@ -180,7 +180,7 @@ describe('PasswordResetEmail', function () {
to: new Email('user@example.com'),
userName: 'John Doe',
companyName: 'Test Company',
resetUrl: Url::from('https://example.com/reset?token=abc123'),
resetUrl: UrlFactory::parse('https://example.com/reset?token=abc123'),
resetCode: 'RESET-123-456',
requestIp: '192.168.1.100',
expiryHours: 24
@@ -201,7 +201,7 @@ describe('PasswordResetEmail', function () {
to: new Email('user@example.com'),
userName: '', // Empty name should fail
companyName: 'Test Company',
resetUrl: Url::from('https://example.com/reset'),
resetUrl: UrlFactory::parse('https://example.com/reset'),
resetCode: 'RESET-123',
requestIp: '192.168.1.100'
);
@@ -212,7 +212,7 @@ describe('PasswordResetEmail', function () {
to: new Email('user@example.com'),
userName: 'John Doe',
companyName: 'Test Company',
resetUrl: Url::from('https://example.com/reset'),
resetUrl: UrlFactory::parse('https://example.com/reset'),
resetCode: '', // Empty code should fail
requestIp: '192.168.1.100'
);
@@ -225,7 +225,7 @@ describe('PasswordResetEmail', function () {
to: new Email('user@example.com'),
userName: 'John Doe',
companyName: 'Test Company',
resetUrl: Url::from('https://example.com/reset'),
resetUrl: UrlFactory::parse('https://example.com/reset'),
resetCode: 'RESET-123',
requestIp: '192.168.1.100',
expiryHours: 0 // Should fail
@@ -237,7 +237,7 @@ describe('PasswordResetEmail', function () {
to: new Email('user@example.com'),
userName: 'John Doe',
companyName: 'Test Company',
resetUrl: Url::from('https://example.com/reset'),
resetUrl: UrlFactory::parse('https://example.com/reset'),
resetCode: 'RESET-123',
requestIp: '192.168.1.100',
expiryHours: 73 // Should fail (max 72)
@@ -254,7 +254,7 @@ describe('PasswordResetEmail', function () {
to: new Email('user@example.com'),
userName: 'John Doe',
companyName: 'Test Company',
resetUrl: Url::from('https://example.com/reset?token=abc123'),
resetUrl: UrlFactory::parse('https://example.com/reset?token=abc123'),
resetCode: 'RESET-123-456',
requestIp: '192.168.1.100',
expiryHours: 24