Reputation: 3
Created laravel artisan Command to execute inside Laravel 5.5 Scheduler (every month).
When i add Cron entry to my ubuntu 18.04 server with crontab -e :
* * * * * php /var/www/html_public/project-name/artisan schedule:run >> /dev/null 2>&1
Note:
$ php artisan schedule:run
Work just fine
Upvotes: 0
Views: 144
Reputation: 1349
Try to write your cron in the other way:
* * * * * cd /var/www/public_html/laravel-project-name && php artisan schedule:run >> /dev/null 2>&1
Upvotes: 0