From 01cf9969803e2b42db62f009d997eb37db6c7b97 Mon Sep 17 00:00:00 2001 From: Tim Moore <1232390+angusmaul@users.noreply.github.com> Date: Wed, 28 Oct 2026 23:31:09 +1100 Subject: [PATCH] AdventureLog: clean-install on update and drop the DRF <3.15 pin (#18281) The update overlaid the release tarball, so files removed upstream survived. v0.13.1 moved the frontend config into vite.config.ts, and the leftover svelte.config.js fails pnpm build under SvelteKit 3 (config_file_unsupported) after the services are already stopped. Deploy with CLEAN_INSTALL=1, keep backend/server/media in place, and back up both .env files. The djangorestframework<3.15 pin (#13194) worked around rest_framework.schemas.coreapi, which AdventureLog stopped using in v0.13.0. v0.13.1 requires djangorestframework>=3.18.3,<3.19, so the pin now downgrades DRF below the app's own requirement. --- ct/adventurelog.sh | 5 ++--- install/adventurelog-install.sh | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ct/adventurelog.sh b/ct/adventurelog.sh index 079fbf9b2..2e543b168 100644 --- a/ct/adventurelog.sh +++ b/ct/adventurelog.sh @@ -37,9 +37,9 @@ function update_script() { msg_ok "Services Stopped" create_backup /opt/adventurelog/backend/server/.env \ - /opt/adventurelog/backend/server/media + /opt/adventurelog/frontend/.env - fetch_and_deploy_gh_release "adventurelog" "seanmorley15/adventurelog" "tarball" + CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="backend/server/media" fetch_and_deploy_gh_release "adventurelog" "seanmorley15/adventurelog" "tarball" PYTHON_VERSION="3.13" setup_uv msg_info "Ensuring PostgreSQL Extensions" @@ -56,7 +56,6 @@ function update_script() { fi $STD .venv/bin/python -m pip install --upgrade pip $STD .venv/bin/python -m pip install -r requirements.txt - $STD .venv/bin/python -m pip install 'djangorestframework<3.15' $STD .venv/bin/python -m manage collectstatic --noinput $STD .venv/bin/python -m manage migrate diff --git a/install/adventurelog-install.sh b/install/adventurelog-install.sh index 751317bec..63aca32b3 100644 --- a/install/adventurelog-install.sh +++ b/install/adventurelog-install.sh @@ -62,7 +62,6 @@ $STD uv venv --clear /opt/adventurelog/backend/server/.venv $STD /opt/adventurelog/backend/server/.venv/bin/python -m ensurepip --upgrade $STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install --upgrade pip $STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install -r requirements.txt -$STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install 'djangorestframework<3.15' $STD /opt/adventurelog/backend/server/.venv/bin/python -m manage collectstatic --noinput $STD /opt/adventurelog/backend/server/.venv/bin/python -m manage migrate $STD /opt/adventurelog/backend/server/.venv/bin/python -m manage download-countries