Skip migration schema lock file in container entrypoint #63

Merged
gnilebein merged 1 commits from fix/docker-migrate-no-lock into main 2026-11-11 23:56:43 +01:00
Showing only changes of commit 27208888e0 - Show all commits
+2 -1
View File
@@ -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}"