Cron input to call Scheduler from Laravel without working

Asked

Viewed 269 times

0

I’m starting now with Laravel, I put a test project of it together with mongodb on an Amazon server, but after I enter the following single entry "* * * * php /path/to/Artisan Schedule:run >> /dev/null 2>&1" in CRONTAB as the excerpt in the documentation of the 'Scheduling' Standard teaches:

Starting The Scheduler Here is the only Cron entry you need to add to your server: * * * * * php /path/to/Artisan Schedule:run >> /dev/null 2>&1 This Cron will call the Laravel command Scheduler Every minute. Then, Laravel evaluates your scheduled tasks and runs the tasks that are due.

Below is the code I’m trying to execute...: inserir a descrição da imagem aqui

Below is the (Kernel.php) of the Standard I edited to call every minute what is in the method ;"Handle" in the previous print:

inserir a descrição da imagem aqui

However, after all...my question is: I put the cron entry in the Linux crontab program so I can call my language, this is how the documentation asks for it... but after installing the cron with the command I mentioned at the beginning of the text, the method I mentioned before (Handle) does not execute, nothing happens... Someone could help me?

  • Without seeing your code, it is difficult to understand what you are trying to do. See more on [mcve].

  • I’ll go for... Thank you, Victor!

  • Read here: https://pt.meta.stackoverflow.com/a/5485/28595

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.