Last active
August 16, 2019 18:17
-
-
Save emmanuelbarturen/2c73513200fe71a0fc38ffda942cf2d1 to your computer and use it in GitHub Desktop.
CronJob For laravel 5.* in Digital Ocean Droplet With Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$crobtab -e | |
//copy ( * * * * * php /var/www/to/artisan schedule:run 1>> /dev/null 2>&1) to end of file | |
$sudo service cron restart | |
//check if cron is running , (see last 3 rows) | |
$sudo grep -i cron /var/log/syslog|tail -3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
work for me below
* * * * * cd /var/www/html && php artisan schedule:run >> /dev/null 2>&1