Skip to content

v0.4.0

Choose a tag to compare

@ralyodio ralyodio released this 03 Sep 21:34
· 3 commits to main since this release
45da2a6

A board that keeps itself current

A minute after it starts, and every five minutes after that, a board asks GitHub for the newest release. When there is one and the board runs from a git checkout, it fetches the tag, runs pnpm install, and restarts itself. This is the three commands you would otherwise type by hand every release, and this release is the last one you have to.

It is on by default. An administrator turns it off under Board settings → Updates. The admin overview now carries an Updates card: what is running, what is out, when it last checked, a Check now button, and Update now when there is something to install. A failed check or install is shown there, not just logged.

What it refuses: a checkout with local changes (that is somebody's work), anything that is not a vX.Y.Z release tag, and a container. The Docker image has no .git to move, so a board on Railway or under docker run sees the notice and is updated by redeploying, as those platforms expect.

On restart the board spawns a fresh copy of itself and exits, so pnpm start in a terminal or under nohup carries on. Under systemd or pm2 set TSBB_RESTART=exit with Restart=always. TSBB_UPDATES=off stops the check altogether, and tsbb update [--check] does the same job from a shell.

Full changes: #11, #12.