mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 13:35:12 +09:00
- create_app(): skip background daemons (queue consumers, metrics, job system, analytics flush, linked-panel client) when loaded by a Flask CLI one-shot such as 'flask db upgrade', or when SERVERKIT_SKIP_BACKGROUND=1. They query the DB before migrations run, so any error there (corrupt DB, pre-migration schema) aborted the migration and sank the whole update. - update.sh: set SERVERKIT_SKIP_BACKGROUND=1 for both flask db upgrade invocations as an explicit contract. - update.sh: fail fast with an actionable message when the SQLite slot copy fails PRAGMA integrity_check, instead of dying mid-boot with 'database disk image is malformed'. - update.sh: rebuild the release tarball's prebuilt venv when its baked VIRTUAL_ENV path resolves to the old slot (it is baked as /opt/serverkit/venv), which previously ran new code on the old slot's dependencies during migration. Resolved-path comparison keeps the fast prebuilt path for fresh installs.