# Deployment Configuration

This directory contains all deployment-related files for agents.jeffemmett.com.

## 📁 Files

- **`DEPLOYMENT_GUIDE.md`** - Complete deployment guide with step-by-step instructions
- **`setup-droplet.sh`** - Automated setup script for DigitalOcean droplet
- **`nginx-config.conf`** - Nginx web server configuration with SSL
- **`README.md`** - This file

## 🚀 Quick Start

### For DigitalOcean Droplet Deployment

1. **Read the guide first**: [DEPLOYMENT_GUIDE.md](./DEPLOYMENT_GUIDE.md)

2. **Configure DNS in Cloudflare**:
   - Type: A
   - Name: agents
   - Content: 143.198.39.165
   - Proxy: DNS only (gray cloud)

3. **Run setup on droplet**:
   ```bash
   ssh root@143.198.39.165
   curl -sSL https://raw.githubusercontent.com/Jeff-Emmett/infinite-agents/main/deployment/setup-droplet.sh | bash
   ```

4. **Configure GitHub Secrets**:
   - `DROPLET_HOST`: 143.198.39.165
   - `DROPLET_USER`: root
   - `DROPLET_SSH_KEY`: Your private SSH key

5. **Deploy**:
   - Push to `main` branch
   - Or trigger workflow manually in GitHub Actions

## 🔧 Manual Deployment

If you need to deploy manually:

```bash
ssh root@143.198.39.165
cd /var/www/agents.jeffemmett.com
git pull origin main
npm ci
python3 generate_index.py
chown -R www-data:www-data .
systemctl reload nginx
```

## 📚 Documentation

See [DEPLOYMENT_GUIDE.md](./DEPLOYMENT_GUIDE.md) for complete documentation including:
- Prerequisites
- DNS configuration
- SSL setup
- Troubleshooting
- Monitoring & logs

## 🎯 Deployment Options

You can deploy to:
1. **DigitalOcean Droplet** (full control) - Uses `deploy-droplet.yml`
2. **GitHub Pages** (simple, free) - Uses `deploy.yml`
3. **Cloudflare Pages** (recommended) - Manual setup via Cloudflare UI

All three can work simultaneously!
