mardi 26 janvier 2016

laravel schedule not working in Local Machine

I created a custom command (app/Console/Commands) called 'doThis' and if I:

php artisan doThis

within the console it will fire and work. I have the following line in my crontab (this is my local computer so path starts at /home/...)

* * * * * php /home/project/work/artisan schedule:run >> /home/logs/laravel_cron_output.txt

I tried what the docs recommend and did

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

Filling in path of course and still nothing. What could be the problem? To get to crontab i just do the following in my terminal

crontab -e

I don't access sudo or su and the user is me Where should I look. How can I find out what the problem is?? Can anyone shed some light here. I did try putting abs path to php with also didn't work.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire