I have created a command in laravel to update my entity status every minute. In my Kernel.php, I have this:
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
$schedule->command('solicitation:update')
->everyMinute();
}
When I run solicitation:update
or php artisan schedule:run
, the command is executed perfectly. Then, I run the command * * * * * php /home/nigellima/Dropbox/Laravel/plataformaTS/artisan schedule:run >> /dev/null 2>&1
to have the task be run every minute, but nothing happens. I have checked my cli package, moved the project to /var/www/
on a remote server but the command is never executed.
What am I missing?
I'm using Laravel 5.6 on Ubuntu.
Thanks in advance!