Skip to content

Commit 3949b2b

Browse files
authored
Update Drupal example with DDEV_PHP_VERSION (#41)
Co-authored-by: tyler36 <[email protected]>
1 parent a3d453f commit 3949b2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ Every minute, it writes the current time (UTC timezone) to `./time.log`.
9696

9797
- Create a `./.ddev/web-build/drupal.cron` file
9898
- Add the following code to run the drupal scheduler every 10 minutes and write to a log file.
99+
- `DDEV_PHP_VERSION` value must match your project's PHP version.
99100

100101
```cron
101-
*/10 * * * * IS_DDEV_PROJECT=true /var/www/html/vendor/bin/drush cron | tee -a /var/www/html/cron-log.txt
102+
*/10 * * * * IS_DDEV_PROJECT=true DDEV_PHP_VERSION=8.1 /var/www/html/vendor/bin/drush cron | tee -a /var/www/html/cron-log.txt
102103
```
103104

104105
### Laravel cron

0 commit comments

Comments
 (0)