samedi 23 janvier 2016

Laravel 5 scheduling on Win 10

can you help me please to comprehend how to run Laravel 5.2 scheduling on Win 10? I have created Windows task according this http://ift.tt/XKVxUD

SCHTASKS /Create /SC minute /TN Test2 /TR C:\Apache24\htdocs\example-laravel\win_cron.bat

It has been successfully created. Also I have created .bat file according this link Laravel 5.1 Task Scheduling on Windows

cd c:\Apapche24\htdocs\example-laravel
php artisan schedule:run 1>> NUL 2>&1

In App\Console\Kernel class I have:

protected function schedule(Schedule $schedule)
{
    $schedule->call( function()
    {
        Log::info( 'Some test message from   App\Console\Kernel:schedule.' );
    })->everyMinute();

}

It seems task is triggering every minute, but there is nothing in log. Also it returns 0x1 to the Task Scheduler window as last run result. Any idea how to force it to work?

Thanks.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1ZTPOKN
via IFTTT

Aucun commentaire:

Enregistrer un commentaire