Docs Automation & Cron Cron Job Setup

Cron Job Setup

Configure the Laravel scheduler for automated coupon management.

5 views Updated 2 weeks ago

Cron Job Setup

Why Cron Is Required

CreateCouponWebsite uses Laravel's task scheduler to automate:

  • Importing coupons from affiliate networks
  • Creating store pages from merchant feeds
  • Removing expired coupons
  • Generating sitemaps
  • Sending scheduled emails

Setting Up the Cron Job

Add this single cron entry to your server:

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

On cPanel

1. Go to cPanel -> Cron Jobs

2. Set frequency to Every Minute

3. Command: cd /home/username/createcouponwebsite && php artisan schedule:run >> /dev/null 2>&1

On VPS (Ubuntu/Debian)

crontab -e

Add the line:

* * * * * cd /var/www/createcouponwebsite && php artisan schedule:run >> /dev/null 2>&1

Verify It Works

Run manually to test:

php artisan schedule:run

Check the output for any errors. You can also view scheduled tasks:

php artisan schedule:list

Without the cron job, coupon auto-import and expired coupon cleanup will NOT run automatically.

Was this article helpful?