Laravel php artisan schedule:run directly on bash

80 views Asked by At

I have a laravel application hosted on a ubuntu server.While i was setting up the scheduler i ran this command on the terminal:

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

Reading the documentation it says that i should have included the previous command in a cron file.I then created a cron configuration like so:

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

When using ps aux to check it shows:

User1@Laravel-Project:~$ ps aux | grep "artisan schedule:run"
User1  143147  0.0  0.0   7008  2100 pts/4    S+   16:55   0:00 grep artisan schedule:run

Will this create a problem in the future and so how can i fix it

0

There are 0 answers