Commit graph

2 commits

Author SHA1 Message Date
DJP
e56ae795eb Complete production deployment documentation
Added:
- DEPLOYMENT.md: Complete production deployment guide
- Updated README.md: Step-by-step server setup instructions
- Production deployment summary with all server details
- Service management commands (systemd)
- Monitoring and troubleshooting guides
- Queue cleanup automation (48 hours)

Production Configuration:
- Server: /opt/ferrero-creativex/creative-x-ferrero/creativex-automation
- Systemd service installed and running
- Box folders hardcoded: 363284027140, 363306582612, 363307501826
- Database: localhost:5437/ferrero_tracking
- Email: TWIST-UK-SERVER@oliver.agency (verified sender)
- API: Production CreativeX with 93 brands

Service Features:
- Auto-start on boot (systemd)
- Auto-restart on failure
- Rotating logs (10MB, 28 backups)
- Queue cleanup after 48 hours
- Full email notifications (upload started, complete, failed)
- 3-folder workflow (Ferrero-In → Processing → Processed)

Tested and Validated:
- Box connection working
- Database connection working
- File upload to CreativeX working
- Email delivery working
- File movement between folders working
- Queue management working

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-03 16:05:13 -05:00
DJP
583711cfe3 Add upload started email and 3-folder workflow
Features:
- Send email when upload starts (immediate confirmation)
- Move files through 3 folders: Ferrero-In → Processing → Processed
- Auto-create Processing and Processed subfolders
- Keep Ferrero-In clean (only new files waiting)

Workflow:
1. User drops file in Ferrero-In
2. Service uploads to CreativeX
3. File moved to Processing folder
4. Email sent: Upload Started
5. Service polls every 30 min
6. When complete: Email sent with scores
7. File moved to Processed folder

Email templates:
- Upload Started: Blue header, shows brand/channel/request_id
- Analysis Complete: Purple header, shows scores/guidelines
- Upload Failed: Red header, shows error

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-29 12:12:28 -05:00