I'm trying to a execute scheduled command every five minutes in background. I use this code
protected function schedule(Schedule $schedule)
{
$schedule->command('read:mail')->cron('*/1 * * * * *')->sendOutputTo(storage_path().'/logs/output.txt')->withoutOverlapping();
}
I suppose that this code is fine, when i use "php artisan scheduler:run" command works, but doesn't work every five minutes in background. ¿Any idea?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2hV7DqL
via IFTTT
Aucun commentaire:
Enregistrer un commentaire