Run the dj-live app server from the dj-incarnadine-org module #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/live-celilo-module"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The app server and the
/liveguest site only run locally. Thedj-incarnadine-orgmodule only publishes the static Astro site.Solution
The module now also runs the app server. Upgrading from config-only to a module with a machine is supported, because each deploy reads the target manifest fresh.
requires.system(an app-zone container) and theidpcapability. Ansible installs the right-archbun --compilebinary and runs it under systemd, taking a SQLite.backupbefore each new binary starts./livebundle, served by the same static route. It also cross-compiles the server for x86_64 and aarch64.on_install:/live/trpc, including WebSocketsdj-liveOIDC client forincarnadine-djs, with localhost:3000 and 127.0.0.1:3579 redirect URIs/etc/dj-live.env(0600) throughapplyRenderedConfig. The unit waits for that file.guest_token_secretis generated by celilo. The Spotify id and secret are operator-set and optional; guest search stays off until both are set.on_backup,on_backup_analyzeandon_restorehandle the SQLite database./livebefore proxying, so the server takesTRPC_ENDPOINTfrom the environment. The module sets/trpc; local use keeps/live/trpc.bun run testscopes tosrc,appandscripts. Barebun testalso finds the module's hook tests, which need their own install, and Bun 1.3.3 ignorespathIgnorePatterns.app/**. A minor changeset takes the module from 0.5.2 to 0.6.0./,/live, health, the WebSocket101, and that sessions survive a backup and restore.This is Slice 8 of
projects/2026-09-27-dj-online-companion/plan.md.Testing
bun testinwebsite/celilo-module/scriptspasses 15 tests.celilo module checkreports 0 failures.bun run testpasses 152 tests, andbun run checkis clean./livebundle (with/live/asset URLs) and both Linux binaries all build.TRPC_ENDPOINT=/trpc:/trpc/configreturns 200,/live/trpc/configreturns 404, and/live/healthreturnsok.⚠️ Before merging the "Version Packages" PR this triggers
Merging the Version PR publishes 0.6.0. celilo-mgr would then provision a real container, register an Authentik client and change the Caddy routes on dj.incarnadine.org. Hold it until:
?token=on WebSocket upgrades)incarnadine-djs🤖 Generated with Claude Code