mercredi 26 septembre 2018

laravel cron not firing but other crons are firing

I have a ubuntu 18.04 setup and running laravel 5.6 and i have set up the default scheduler in crontab -e

* * * * * php /var/www/html/laravel/artisan schedule:run >> /var/www/html/crons.txt 2>&1

and this is not running

my Kernel code

<?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\CompletelyReviewInternship',
        'App\Console\Commands\MigrateUsers',
        'App\Console\Commands\MigrateUsersTwo',
        'App\Console\Commands\MigrateUsersThree',
        'App\Console\Commands\MigrateUsersFour',
        'App\Console\Commands\MigrateUsersFive',
        'App\Console\Commands\MigrateUsersSix',
        'App\Console\Commands\MigrateUsersSeven',
        'App\Console\Commands\MigrateUsersEight',
        'App\Console\Commands\MigrateUsersNine',
        'App\Console\Commands\MigrateUsersTen'
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('review:internship')->hourly();

        $schedule->command('migrate:users')->dailyAt('17:40');

        $schedule->command('migrate:userstwo')->dailyAt('17:40');

        $schedule->command('migrate:usersthree')->dailyAt('17:40');

        $schedule->command('migrate:usersthree')->dailyAt('17:40');

        $schedule->command('migrate:usersfour')->dailyAt('17:40');

        $schedule->command('migrate:usersfive')->dailyAt('17:40');

        $schedule->command('migrate:userssix')->dailyAt('17:40');

        $schedule->command('migrate:usersseven')->dailyAt('17:40');

        $schedule->command('migrate:userseight')->dailyAt('17:40');

        $schedule->command('migrate:usersnine')->dailyAt('17:40');

        $schedule->command('migrate:usersten')->dailyAt('17:40');

    }

    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');

        require base_path('routes/console.php');
    }
}

Please Note :- my commands are firing with php artisan and i am using nginx as my web server

any advise on this will be advisable



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2xDm8Im
via IFTTT

Aucun commentaire:

Enregistrer un commentaire