Repository navigation
Closed
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
What to build
Add the configuration that serves thirdshift.app from the owner's server and keeps it up to date. It lives in a deploy directory inside the site directory, which is never served. Installing it on the server is a separate human ticket.
- Caddy site block for
thirdshift.app:file_serverfrom the published web root, with automatic TLS;www.thirdshift.apppermanently redirects tohttps://thirdshift.app;/install.shreturns a 302 (temporary) redirect tohttps://github.com/JacobStephens2/thirdshift/releases/latest/download/thirdshift-installer.sh.
- Publish script (shell, no dependencies beyond git and coreutils):
- it fetches
mainin a checkout dedicated to deploying; - when the site directory has changed since the last deploy, it copies it into the web root atomically (for example, a new directory and a symlink swap), leaving out the deploy directory;
- it records the deployed commit where the site can read it (the Prompts and skills page will show it);
- it's safe to re-run, and does nothing when nothing changed.
- it fetches
- A systemd service and timer that run the script every few minutes as an unprivileged user.
- A short README in the deploy directory with the install steps a human follows.
No analytics, and no credentials stored in GitHub: the deploy only ever pulls.
Acceptance criteria
- The Caddy block passes
caddy validate(orcaddy adapt), and contains the site, thewwwredirect and the/install.sh302. - Running the publish script against a local clone and a temporary web root publishes the site, records the commit, and doesn't copy the deploy directory.
- Running it again with no new commits changes nothing. After a new commit that touches the site, it swaps the site atomically.
- The systemd units pass
systemd-analyze verify. - The deploy directory is never served.
- The deploy README lists the manual install steps.
Blocked by
None (can start immediately)
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity