I'm trying to set up a task every minutes. I put in the crontab as root :
* * * * usr/bin/php /var/www/html/projet1613/artisan schedule:run 1>> /dev/null 2>&1
I can see in the file cron.log that the command is run
Feb 22 13:33:01 serveur-auditpro-1613 CRON[5225]: (root) CMD (usr/bin/php /var/www/html/projet1613/artisan schedule:run 1>> /dev/null 2>&1)
Feb 22 13:33:02 serveur-auditpro-1613 CRON[5225]: (root) CMD (usr/bin/php /var/www/html/projet1613/artisan schedule:run 1>> /dev/null 2>&1)
In my laravel project in the Kernel.php, I put this :
$schedule->command(SaveResult::class)->cron('* * * * *');
When I make the order by myself everything is ok but when it is done every minute by the crontab nothing happens.
Do you have an idea?
Thanks in advance.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kZnIuG
via IFTTT
Aucun commentaire:
Enregistrer un commentaire