#!/bin/sh # System-cron replacement for Action Scheduler / WP-Cron (design doc ยง01). # WORDPRESS_CONFIG_EXTRA sets DISABLE_WP_CRON, so this loop is the only # thing driving scheduled events in every environment. set -eu echo "bookstore-core cron sidecar starting (60s interval)" while true; do if ! wp cron event run --due-now --path=/var/www/html 2>/tmp/cron-last-error.log; then echo "cron run failed: $(cat /tmp/cron-last-error.log)" fi sleep 60 done