Commit Graph

10 Commits

Author SHA1 Message Date
ryan.gogo
2598323f84 Remove .saac/ directory from repository and add to .gitignore
- Add .saac/ to .gitignore (local SAAC configuration)
- Remove .saac/config.json from git tracking
- This file is generated locally and should not be in templates

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-15 11:57:34 +01:00
ryan.gogo
25b9d20094 Fix: Use short git commit ID (7 chars) instead of full hash
Research findings:
- Industry standard uses 'git rev-parse --short HEAD' (7 characters)
- Short hashes are more readable for logs and health endpoints
- Git automatically extends hash if 7 chars aren't unique
- Better for production deployment tracking and version verification

Changes:
- Dockerfile: Use --short flag to get 7-character commit ID
- README: Update examples to show short commit format (0e993d9)
- README: Add explanation of why short commits are used

Example health response:
{
  "git_commit": "0e993d9",  // 7 chars, not full 40-char SHA
  "version": "1.0.0"
}

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-15 11:00:45 +01:00
ryan.gogo
0e993d912a Add Git commit ID tracking to health endpoint
Features:
- Health endpoint now returns git_commit SHA and version
- Auto-detects git commit during Docker build
- Falls back to 'unknown' if git info unavailable
- Allows AI agents to verify deployed version

Changes:
1. server.js: Add git_commit and version to /health response
2. Dockerfile: Add git installation and commit detection
3. Dockerfile: Accept GIT_COMMIT and APP_VERSION build args
4. docker-compose.yml: Pass build args and env vars for versioning
5. README.md: Document version tracking in health endpoint

Example response:
{
  "status": "healthy",
  "postgres": "connected",
  "redis": "connected",
  "timestamp": "2026-02-14T10:30:00.000Z",
  "git_commit": "eb6b6e0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q",
  "version": "1.0.0"
}

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-15 10:58:26 +01:00
ryan.gogo
eb6b6e09df Add health checks for zero-downtime deployments
Critical changes for production stability:

1. Add healthchecks to all services:
   - app: curl to /health endpoint (10s interval, 5s start period)
   - postgres: pg_isready check (5s interval)
   - redis: redis-cli ping check (5s interval)

2. Use depends_on with health conditions:
   - Ensures postgres/redis are fully ready before app starts
   - Prevents connection errors during startup

3. Remove hardcoded container_name:
   - Prevents name collisions between deployments
   - Allows Coolify to manage container names

Why this matters:
- Without healthchecks: Coolify kills old container → builds new → 502 gap
- With healthchecks: Coolify builds new → waits for healthy → kills old → zero downtime

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-15 10:54:44 +01:00
ryan.gogo
ceb77b2d5a Add health check and improve Docker layer caching
- Install curl for HEALTHCHECK support
- Add HEALTHCHECK instruction using /health endpoint
- Improve layer caching by copying package.json before app code
- Add helpful comments for better maintainability
- Health check runs every 10s with 5s start period and 2 retries

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-15 10:40:00 +01:00
ryan.gogo
f5d778956f Update README: Remove non-existent features from documentation
- Remove saac shell commands (not available)
- Remove saac domain commands (not available)
- Remove resource limit update commands (not available)
- Simplify debugging section with available commands
- Keep only working features: logs, env, status

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-14 06:37:53 +01:00
ryan.gogo
f48a5b456b Update README: Remove Git OAuth section and fix examples
- Remove Git OAuth connection step (SAAC AI agents already connected)
- Add note that AI agents have Git pre-configured
- Update examples to use 'username' instead of 'YourOrg'
- Add clarification about username/repo placeholders
- Renumber sections accordingly (5-8 instead of 6-9)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-14 06:35:44 +01:00
ryan.gogo
82f0c75ac3 Update README: Remove local Docker testing instructions
- Remove local Docker testing section (SAAC AI agents don't have Docker)
- Update best practices for AI agents without build tools
- Update contributing section to use saac deploy for testing
- Add note that AI agents should deploy directly to SAAC servers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-14 06:33:19 +01:00
ryan.gogo
bf6bb394c2 Add comprehensive documentation to README.md
- AI Developer Agent instructions with step-by-step guide
- Critical port configuration explanation (no host port mappings)
- Complete deployment guide with all commands used
- Architecture documentation
- Environment variables reference
- API endpoints documentation
- Troubleshooting section
- Advanced configuration examples
- Local development setup

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-14 06:30:54 +01:00
ryan.gogo
95c13a841f Initial commit: Template site for Start an AI Company deployment
- Node.js Express application with modern white UI
- PostgreSQL and Redis integration
- Docker Compose configuration without host port mappings
- Traefik-ready with proper labels
- Health check endpoint

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-14 05:52:41 +01:00