Skip to content

Commit 8933b82

Browse files
committed
Added laravel cronjob
1 parent 6f43558 commit 8933b82

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,10 +941,12 @@ To controll the behavior of xDebug (in the `php-fpm` Container), you can run the
941941
<a name="CronJobs"></a>
942942
### Adding cron jobs
943943

944-
Add a root file containing the cron jobs in `workspace/crontab`.
944+
You can add your cron jobs to `workspace/crontab/root` after the `php artisan` line.
945945

946946
```
947-
# workspace/crontab/root
947+
* * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1
948+
949+
# Custom cron
948950
* * * * * root echo "Every Minute" > /var/log/cron.log 2>&1
949951
```
950952

workspace/crontab/.gitkeep

Whitespace-only changes.

workspace/crontab/root

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1

0 commit comments

Comments
 (0)