Skip to content

Commit

Permalink
Update Drupal example with DDEV_PHP_VERSION (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: tyler36 <[email protected]>
  • Loading branch information
tyler36 and tyler36 authored Nov 7, 2023
1 parent a3d453f commit 3949b2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ Every minute, it writes the current time (UTC timezone) to `./time.log`.

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

```cron
*/10 * * * * IS_DDEV_PROJECT=true /var/www/html/vendor/bin/drush cron | tee -a /var/www/html/cron-log.txt
*/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
```

### Laravel cron
Expand Down

0 comments on commit 3949b2b

Please sign in to comment.