You are here

Executing cron task for ddev container

Submitted by Alan Mels on Tue, 12/20/2022 - 07:40

Read https://github.com/drud/ddev/issues/1715, also see https://github.com/drud/ddev-cron, but my solution is:

Hi everyone!

The easiest way to get this working on my MBP turned out to be the simplest way:

cd ~/sites/mysite
ddev describe // grab the last one in All URLs raw. Note aliased one won't work, so it must be numeric one.
crontab -e // fire up the old good crontask installation command.
and install your cron-job like so:

  1. */1 * * * * /opt/homebrew/bin/wget -O - -q -t 1 http://127.0.0.1:52475/core/cron.php?cron_key=mMbEasbjBTFOmPBnZrAbYNtCliTmllIbrNZMbG55xQo

Works like charm and you don't have to install anything additional.