How do I set up the cron job for Taskify on my server?
Answer: Add this to your server's crontab to ensure Laravel's scheduler runs every minute.
Basic Cron Job:
* * * * * php /path/to/taskify/artisan schedule:run >> /dev/null 2>&1Setup Instructions:
- Access your server: SSH into your server or use your hosting control panel
- Open crontab:
crontab -e - Add the cron job: Paste the cron job line
- Save and exit: Save the file and exit the editor
- Verify installation:
crontab -l
Advanced Configuration:
With Logging:
* * * * * php /path/to/taskify/artisan schedule:run >> /path/to/taskify/storage/logs/cron.log 2>&1With Specific User:
* * * * * www-data php /path/to/taskify/artisan schedule:run >> /dev/null 2>&1With Full Path to PHP:
* * * * * /usr/bin/php /path/to/taskify/artisan schedule:run >> /dev/null 2>&1Shared Hosting:
If you're on shared hosting, use your hosting provider's cron job interface instead of command line crontab.
Testing:
Test your cron job by running:
php artisan schedule:runCheck for any errors and verify that scheduled tasks are being processed.