Anyone ?
Apr 1, 2015
5
Level 16
Envoyer Heartbeat failing, what's wrong here
So i set up a Heartbeat that checks if my cron is running once a day, however it keeps failing, this is what i've done:
- Set up Heartbeat
- Set up Cron to run Scehduler once a minute : Every Minute * * * * * forge php /home/forge/default/current/artisan schedule:run
I also setup my Console/Kernel like this:
<?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\Inspire',
'App\Console\Commands\CheckSubscriptions',
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('tpmsa:check')
->daily()
->thenPing("http://myheartbeat.url");
$schedule->command('inspire')->everyFiveMinutes();
}
}
In forge the Scheduler log just says: No scheduled commands are ready to run.
What am i missing ?
Please or to participate in this conversation.