我的调度程序不是每分钟调用一次()
My Schedular is not calling everyMinute()
我的调度程序没有在每分钟后自动调用。
我试过下面的代码
protected function schedule(Schedule $schedule)
{
$schedule->command('timestamp:minute')->everyMinute();
}
我需要我的日程安排自动调用。
在您的终端中,输入 crontab -e
并在末尾添加以下行
* * * * * /usr/bin/php{php_version} /path_to_project/artisan schedule:run >> /dev/null 2>&1
现在,在终端中,转到您的项目目录并运行一次
php artisan schedule:run
我的调度程序没有在每分钟后自动调用。
我试过下面的代码
protected function schedule(Schedule $schedule)
{
$schedule->command('timestamp:minute')->everyMinute();
}
我需要我的日程安排自动调用。
在您的终端中,输入 crontab -e
并在末尾添加以下行
* * * * * /usr/bin/php{php_version} /path_to_project/artisan schedule:run >> /dev/null 2>&1
现在,在终端中,转到您的项目目录并运行一次
php artisan schedule:run