# Rachel Rae's Rundown — Deploy Guide

## 1. Upload files
Upload the contents of `public_html/` to your web host document root
(e.g. `/home/USER/public_html` or `/var/www/rachelmoreno.com`).

## 2. Create MySQL database
Create an empty MySQL database and a user with full privileges on it.
Note the host, database name, username, and password.

## 3. Import schema
Import `schema.sql` (included at the package root, also under `public_html/`):

```bash
mysql -u YOUR_DB_USER -p YOUR_DB_NAME < schema.sql
```

## 4. Configure environment
```bash
cp public_html/.env.example public_html/.env
```
Edit `.env` and fill in real values: `DB_*`, `ANTHROPIC_API_KEY`, `FAL_API_KEY`,
`ADMIN_PASSWORD`, and `CRON_KEY`. Keep `SITE_URL=https://rachelmoreno.com`
and `APP_ENV=production`. Do not commit or share `.env`.

## 5. Point document root
Point the site's document root at the folder that contains `index.php`,
`.htaccess`, `admin/`, `api/`, `cron/`, etc. (the uploaded `public_html/` contents).

## 6. Enable SSL
Install an SSL certificate (Let's Encrypt / host panel) so HTTPS works for
`https://rachelmoreno.com`.

## 7. Set up cron
Follow `public_html/cron/CRONTAB_SETUP.txt`. Update PHP and app paths for your
server, then install the crontab (or use cPanel → Cron Jobs).

## Checklist
- [ ] Files uploaded
- [ ] DB created + `schema.sql` imported
- [ ] `.env` filled (no secrets left as placeholders)
- [ ] Docroot + SSL configured
- [ ] Cron jobs installed and logging
