vendredi 29 janvier 2016

Laravel 5 How to run a php file via scheduler

First time ever setting up a cron/scheduler. How do I run a php file with the scheduler? This is what I see in Laravel's documentation...

Entered the following command via Putty/SSH...

php /path/to/artisan schedule:run >> /dev/null 2>&1

Now... In the Kernel.php file... do I simply add the path to the php file that I want to run in the statement below?

$schedule->exec('node /home/forge/script.js')->daily();



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire