Package the whole server as a .deb for Debian 13 and Ubuntu 24.04
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
openchronology-server bundles the platform, its Node.js 24 runtime (pinned and checksummed), och-convert and pgmp built for the distribution's PostgreSQL (17 on Debian 13, 16 on Ubuntu 24.04), and depends on that PostgreSQL. Built in Docker per distribution by scripts/server-deb.mjs. The first install creates the system user, /etc/openchronology with a fresh AUTH_ENCRYPTION_KEY, the PostgreSQL role and database with pgmp, migrates, and enables and starts openchronology.service (127.0.0.1:5173), starting PostgreSQL itself where no systemd did. Upgrades keep the configuration and database, stop the server, and list the settings new in this version's template with how to compare them, back up, and run openchronology-migrate, which migrates and starts it again. Purge removes the configuration and never drops the database. Optional mail and syslog units ship disabled. test/server-deb.mjs installs a package in a fresh container of its distribution and checks the database, pgmp arithmetic, the running server, an upgrade (configuration and data kept) and a purge. CI builds and tests both on every push, keeping them as artifacts; releases require and attach them. Fixes #72 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ti36soiZpKdSxKfvQLEcfY https://github.com/openchronology/timeline-app/commit/ec375c9cea227adfe97bed9c8f2ff88138d06036
Related
Open Package the whole server as a .deb for Debian 13 and Ubuntu 24.04 in the timeline