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
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- [Useful sites and debugging](#useful-sites-and-debugging)
- [Examples](#examples)
- [Logging current time](#logging-current-time)
- [Contao cron](#contao-cron)
- [Drupal cron](#drupal-cron)
- [Laravel cron](#laravel-cron)
- [OpenMage cron](#openmage-cron)
Expand Down Expand Up @@ -87,6 +88,15 @@ 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.

### Contao cron

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

```cron
* * * * * php /var/www/html/vendor/bin/contao-console contao:cron
```

### Drupal cron

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