generated from theradcoza/Laravel-Docker-Dev-Template
Initial commit
This commit is contained in:
6
deploy/scripts/laravel-scheduler.cron
Normal file
6
deploy/scripts/laravel-scheduler.cron
Normal file
@@ -0,0 +1,6 @@
|
||||
# Laravel Scheduler Cron Job
|
||||
# Add this to crontab: sudo crontab -e -u www-data
|
||||
# Or copy to /etc/cron.d/laravel-scheduler
|
||||
|
||||
# Run Laravel scheduler every minute
|
||||
* * * * * www-data cd /var/www/your-app && php artisan schedule:run >> /dev/null 2>&1
|
||||
Reference in New Issue
Block a user