How do I set up the cron job for Taskify on my server?

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>&1

Setup Instructions:

  1. Access your server: SSH into your server or use your hosting control panel
  2. Open crontab:
    crontab -e
  3. Add the cron job: Paste the cron job line
  4. Save and exit: Save the file and exit the editor
  5. Verify installation:
    crontab -l

Advanced Configuration:

With Logging:

* * * * * php /path/to/taskify/artisan schedule:run >> /path/to/taskify/storage/logs/cron.log 2>&1

With Specific User:

* * * * * www-data php /path/to/taskify/artisan schedule:run >> /dev/null 2>&1

With Full Path to PHP:

* * * * * /usr/bin/php /path/to/taskify/artisan schedule:run >> /dev/null 2>&1

Shared 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:run

Check for any errors and verify that scheduled tasks are being processed.