Make sure the framework folder in storage is writable and there's things being written to it for the scheduling.
Jun 29, 2015
4
Level 9
Schedule:run does not work on my live server
Hi,
I have a strange thing going on here and I can't seem to figure it out. I have a command that I would like to add to my cronjobs. Just to make sure this hasn't got anything to do with the way the cronjob is called on the server I’m testing this in the command-line using
php artisan schedule:run
I have this in my App\Console\Kernel.php:
<?php namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel {
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
'App\Console\Commands\UpdateStuff',
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('updatestuff')
->everyMinute();
}
}
When I run php artisan schedule:run on my (local) homestead the job gets done. When I do this on my server (Digital Ocean) it says No scheduled commands are ready to run.
The scripts on each server are identical (same git)
Please or to participate in this conversation.