lundi 27 novembre 2017

Command schedule in Laravel

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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire