I am using jobs in laravel 5 and it works perfectly in localhost using the command, when I thought about using a shared hosting where there is no commands, I changed the code and I added commands the to it and it still works in localhost using this function in Kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command('queue:listen --timeout=0')->everyMinute();
}
But when it comes to a shared hosting I receive this error (in a log file that I am using) when launching the job
[2016-10-18 08:15:22] local.ERROR: exception 'ErrorException' with message 'Undefined offset: 0' in /home/devaga/public_html/HashtagApp/vendor/symfony/process/Pipes/AbstractPipes.php:140
Thanks for your help
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire