Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
- [Useful sites and debugging](#useful-sites-and-debugging)
- [Examples](#examples)
- [Logging current time](#logging-current-time)
- [TYPO3 scheduler](#typo3-scheduler)
- [Drupal cron](#drupal-cron)
- [Laravel cron](#laravel-cron)
- [OpenMage cron](#openmage-cron)
- [TYPO3 scheduler](#typo3-scheduler)
- [WordPress cron](#wordpress-cron)

## Introduction
Expand Down Expand Up @@ -83,15 +84,6 @@ Every minute, it writes the current time (UTC timezone) to `./time.log`.
- Restart the DDEV project to start the time example.
- After at least a minute, you should see `./time.log` containing the web container's current time.

### TYPO3 scheduler

- Create a `./.ddev/web-build/typo3.cron` file
- Add the following code to run the typo3 scheduler every minute and write to a log file.

```cron
* * * * * cd /var/www/html && IS_DDEV_PROJECT=true vendor/bin/typo3 scheduler:run -vv | tee -a /var/www/html/scheduler-log.txt
```

### Drupal cron

- Create a `./.ddev/web-build/drupal.cron` file
Expand All @@ -111,6 +103,24 @@ Every minute, it writes the current time (UTC timezone) to `./time.log`.
* * * * * cd /var/www/html && IS_DDEV_PROJECT=true php artisan schedule:run >> /dev/null 2>&1
```

### OpenMage cron

- Create a `./.ddev/web-build/openmage.cron` file
- Add the following code to run the OpenMage scheduler every minute.

```cron
* * * * * /var/www/html/cron.sh
```

### TYPO3 scheduler

- Create a `./.ddev/web-build/typo3.cron` file
- Add the following code to run the typo3 scheduler every minute and write to a log file.

```cron
* * * * * cd /var/www/html && IS_DDEV_PROJECT=true vendor/bin/typo3 scheduler:run -vv | tee -a /var/www/html/scheduler-log.txt
```

### WordPress cron

- Create a `./.ddev/web-build/wordpress.cron` file
Expand Down