#!/usr/bin/env php ╔════════════════════════════════════════════════════════════════╗ ║ HTTP Cron Setup Helper for Shared Hosting ║ ║ 6figstrade Application ║ ╚════════════════════════════════════════════════════════════════╝ ✅ CRON_SECRET_TOKEN already exists in .env Token: 7453 Do you want to generate a new token? (y/N): ╔════════════════════════════════════════════════════════════════╗ ║ Setup Instructions ║ ╚════════════════════════════════════════════════════════════════╝ Your Cron URLs (copy these to your cPanel or cron service): ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1️⃣ SCHEDULER (run every minute): http://localhost/6figstrade/cron/scheduler?token=7453 2️⃣ QUEUE WORKER (run every minute): http://localhost/6figstrade/cron/queue?token=7453 3️⃣ HEALTH CHECK (optional - test your setup): http://localhost/6figstrade/cron/health?token=7453 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📋 cPanel Cron Job Commands: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Command 1 (Scheduler): curl -s "http://localhost/6figstrade/cron/scheduler?token=7453" > /dev/null 2>&1 Command 2 (Queue Worker): curl -s "http://localhost/6figstrade/cron/queue?token=7453" > /dev/null 2>&1 Schedule: */1 * * * * (every minute) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📝 Next Steps: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1. Test the health check URL in your browser: http://localhost/6figstrade/cron/health?token=7453 2. Add the cron jobs to your cPanel: - Login to cPanel - Find 'Cron Jobs' section - Add both commands above - Set schedule to: */1 * * * * 3. Wait 2 minutes and check if tasks are running: - Check storage/logs/laravel.log - Verify crypto prices are updating - Confirm trades are being processed 4. For detailed instructions, see: HTTP_CRON_SETUP_GUIDE.md ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚠️ IMPORTANT: Keep your token secret! - Never commit it to git - Don't share it publicly - Rotate it periodically ✅ Setup complete! Your cron token has been configured.