Commit Graph

3 Commits

Author SHA1 Message Date
Alejandro Gutiérrez
5aa7559d43 Fix SQL join type mismatch (application_id varchar vs id bigint) and add is_api field
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 01:14:46 +01:00
Alejandro Gutiérrez
af49497923 Fix Coolify DB connection URL parsing for special chars in password
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 01:00:21 +01:00
Alejandro Gutiérrez
9e683eba22 Replace polling with real-time SSE stream and eliminate Python API dependency
- Add single /api/events SSE endpoint replacing 5 separate polling intervals
- Query Prometheus directly for system stats (replaces Python API on port 9876)
- Query Coolify PostgreSQL directly for deployments (replaces SSH/tinker approach)
- Add EventManager singleton for server-side polling + client broadcast
- Add useEventStream hook with exponential backoff reconnection
- Add live deployment log streaming via SSE for in-progress builds
- Add redeploy button and live duration counter in deployments table
- Add SSE connection indicator in header (green=live, red=offline)
- Externalize all hardcoded 192.168.1.3 references to env vars via config.ts
- Reduce API route code by ~400 lines through shared library modules

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 00:43:41 +01:00