From 27208888e02f53300f1a20a3b9a4f9189eb4b387 Mon Sep 17 00:00:00 2001 From: Patrick Niebeling Date: Wed, 11 Nov 2026 23:55:40 +0100 Subject: [PATCH] Skip migration schema lock file in container entrypoint config/ is not writable for www-data, so the schema dump failed with a permission warning on every start. Co-Authored-By: Claude Sonnet 5.5 --- docker/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 473c2d0..2b0d6e1 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -10,7 +10,8 @@ if [ -z "${SECURITY_SALT:-}" ] || [ "${SECURITY_SALT}" = "__SALT__" ]; then exit 1 fi -php bin/cake.php migrations migrate +# --no-lock: skip the schema dump lock file; config/ is read-only for www-data and the file is only a dev aid +php bin/cake.php migrations migrate --no-lock php bin/cake.php cache clear_all exec php bin/cake.php server -H 0.0.0.0 -p "${PORT:-8765}" -- 2.54.1