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

@@ -28,7 +28,21 @@ final readonly class MigrationDatabaseManager
}
$sql = $this->createMigrationsTableSQL($this->tableConfig->tableName);
$this->connection->execute(SqlQuery::create($sql));
// PostgreSQL doesn't support multiple statements in prepared statements
// Split by semicolon and execute each statement separately
if ($this->platform->getName() === 'PostgreSQL') {
$statements = array_filter(
array_map('trim', explode(';', $sql)),
fn($stmt) => !empty($stmt)
);
foreach ($statements as $statement) {
$this->connection->execute(SqlQuery::create($statement));
}
} else {
$this->connection->execute(SqlQuery::create($sql));
}
}
public function recordMigrationExecution(Migration $migration, string $version): void
@@ -78,7 +92,7 @@ final readonly class MigrationDatabaseManager
INDEX idx_executed_at (executed_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci",
'postgresql' => "CREATE TABLE {$tableName} (
'PostgreSQL' => "CREATE TABLE {$tableName} (
id SERIAL PRIMARY KEY,
version VARCHAR(255) NOT NULL UNIQUE,
description TEXT NOT NULL,