Added laravel cronjob
This commit is contained in:
parent
6f435584a9
commit
8933b827b3
@ -941,10 +941,12 @@ To controll the behavior of xDebug (in the `php-fpm` Container), you can run the
|
|||||||
<a name="CronJobs"></a>
|
<a name="CronJobs"></a>
|
||||||
### Adding cron jobs
|
### 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
|
* * * * * root echo "Every Minute" > /var/log/cron.log 2>&1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
1
workspace/crontab/root
Normal file
1
workspace/crontab/root
Normal file
@ -0,0 +1 @@
|
|||||||
|
* * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1
|
Loading…
Reference in New Issue
Block a user