Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do find /path/to/artisan ?

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 ?

like image 497
code-8 Avatar asked Oct 28 '16 16:10

code-8


1 Answers

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
like image 113
Alexey Mezenin Avatar answered Nov 15 '22 23:11

Alexey Mezenin