Refresh deploy/ and bin/ from the boilerplate at 09e144d (the release split between the distro and Windows, wsl-setup, the server config, USER 1000, python:3.15-slim) with roledesk's facts put back: no frontend stage, desk, plugins and seed copied, the extras passkeys, embeddings and llm, roles as the table the backup and the importer require, bin/pull.sh and bin/worker.sh with their profile commands, and Install Server.md and Install WSL.md as copies in place of the five old deployment docs

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-10-27 11:11:19 +01:00
1 parent 83e965dfeb
commit a1f281a23a
40 files changed
+2226 -1287

No files matched your search

+26 -13
View File
@@ -1,28 +1,41 @@
# Copy to release.env beside these scripts and fill it in. Never committed:
# it names your registry and, for db.ps1, your server.
# Copy to release.env. One file, read by both halves of the release: the bash
# scripts (_common.sh), which run in the WSL distro that holds the checkout, and
# the PowerShell ones (_common.ps1, wsl-setup.ps1), which run on Windows. Both
# read KEY=VALUE lines and neither runs the file as shell, so $HOME and ~ are
# not expanded. Local main is the source; fetching is your choice. Never
# committed: it names your registry and, for db.sh, your server.
#
# Local main is the source. Fetching it first is your choice, not the script's.
# Where the checkout is: the distro's name and the path inside it, as
# docs/Install WSL.md lays them out, with the checkout folder's name last.
# wsl-setup.ps1 writes them into the profile commands, and steps 2 and 3 find
# step 1's export at \\wsl.localhost\<DISTRO>\<CHECKOUT's parent>\release\<folder>.
DISTRO=claudebox
CHECKOUT=/home/claude/cboxcode/jobboard
# The service's name. Used for the image tag, for the temporary directories
# these scripts create, and for the database file db.ps1 moves. One word, no
# spaces — it ends up in paths.
# The compose service, SERVICE in deploy/server/*.sh. Used by db.sh, on the
# Linux side, for the snapshot names (<NAME>-<stamp>.db.gz, as backup.sh writes
# them) and the start command it prints. One word, no spaces.
NAME=app
# Windows side, used by steps 2 and 3. wslc builds for the machine's own
# architecture (linux/amd64 here) and has no --platform.
IMAGE=git.rittershofer.org/wolf/app
PLATFORM=linux/amd64
# Linux side, used by step 1: which branch is tested, and which one it promotes.
BRANCH=production
SOURCE=main
# Defaults to the checkout's .venv/Scripts/python.exe. Only needed for the
# tests in step 1 and for db.ps1's snapshot.
# PYTHON=C:/Users/Coolkau/code/app/.venv/Scripts/python.exe
# Linux side, used by step 1 and by db.sh's snapshot, in the distro. Defaults to
# the checkout's .venv/bin/python (a WSL path, /home/<user>/...).
# PYTHON=/home/<user>/cboxcode/jobboard/.venv/bin/python
# db.ps1 uses SSH. The numbered release scripts never do. REMOTE_DIR is the
# db.sh uses SSH. The numbered release scripts never do. REMOTE_DIR is the
# directory holding the compose file; REMOTE_DATA is where APP_DATA points,
# and defaults to REMOTE_DIR/data when left blank.
SSH_HOST=
REMOTE_DIR=/srv/swag
REMOTE_DATA=/srv/data/app
# The database this machine pushes, if it is not <root>/<NAME>.db.
# LOCAL_DB=C:/Users/Coolkau/code/app/app.db
# The database this machine pushes, if it is not the one the app's config names
# (`database` in config.yaml, roledesk.db in the checkout without one).
# LOCAL_DB=/home/<user>/cboxcode/jobboard/roledesk.db