Skip to content

Instantly share code, notes, and snippets.

@emmanuelbarturen
Last active August 16, 2019 18:17
Show Gist options
  • Save emmanuelbarturen/2c73513200fe71a0fc38ffda942cf2d1 to your computer and use it in GitHub Desktop.
Save emmanuelbarturen/2c73513200fe71a0fc38ffda942cf2d1 to your computer and use it in GitHub Desktop.
CronJob For laravel 5.* in Digital Ocean Droplet With Ubuntu
$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
@nandlal-tjm
Copy link

nandlal-tjm commented Aug 16, 2019

work for me below
* * * * * cd /var/www/html && php artisan schedule:run >> /dev/null 2>&1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment