Added laravel cronjob

This commit is contained in:
philtrep 2016-10-03 20:27:46 -04:00
parent 6f435584a9
commit 8933b827b3
3 changed files with 5 additions and 2 deletions

View File

@ -941,10 +941,12 @@ To controll the behavior of xDebug (in the `php-fpm` Container), you can run the
<a name="CronJobs"></a>
### Adding cron jobs
Add a root file containing the cron jobs in `workspace/crontab`.
You can add your cron jobs to `workspace/crontab/root` after the `php artisan` line.
```
# workspace/crontab/root
* * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1
# Custom cron
* * * * * root echo "Every Minute" > /var/log/cron.log 2>&1
```

1
workspace/crontab/root Normal file
View File

@ -0,0 +1 @@
* * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1