mardi 22 décembre 2015

Task Scheduling Laravel5.1

I have a question about setting up cron task on a remote server. I'm using CPanel and I tried using Bitvise to run my cron task but the site doesn't allow SSH. Basically I tried copy and paste this php /path/to/artisan schedule:run >> /dev/null 2>&1. And set the timing to everyminute. I tried to send myself an email every minute.

protected function schedule(Schedule $schedule) {

    $schedule->call(function () {
        $eController = new emailController;
        $eController->tryEmail();
    })->everyMinute();
}

Nothing seems to work. I simply don't know why. I think it's because the server I hosted my website probably doesn't allow artisan code. Any advice would be great.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire