How do find /path/to/artisan ?

cyber8200 picture cyber8200 · Oct 28, 2016 · Viewed 12.9k times · Source

Trying to Scheduling Artisan Commands

https://laravel.com/docs/5.0/artisan

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

Can someone please show me how do I know the /path/to/artisan ?

Answer

Alexey Mezenin picture Alexey Mezenin · Oct 28, 2016

artisan is in your Laravel project root. So, if your project path looks like /home/laravel-proj/ use this:

* * * * * php /home/laravel-proj/artisan schedule:run 1>> /dev/null 2>&1