📜  * * * * * cd path-to-your-project && php artisan schedule:run >> dev null 2>&1 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:36.305000             🧑  作者: Mango

代码示例1
// Setting Cron in AWS
// type command "crontab -e" and paste the below formatted line
* * * * * /pathToYourPhp /pathToArtisan/artisan schedule:run >> /dev/null 2>&1
// for example * * * * * /usr/bin/php7.4 /var/www/html/testproject/artisan schedule:run >> /dev/null 2>&1