One registry
projects.json declares every site, its file glob or upload tree, its remote path, its hooks and its linked group. Nothing about deploying lives in the projects themselves.
One command ships every site. No page points at a missing asset.
MindAttic.Deploy is the one registry-driven pipeline that publishes the MindAttic websites over FTPS, releasing the shared component package and the sites that load it together, gated so nothing goes live half-built.
What it is
Every site used to carry its own deploy.ps1, its own node_modules/ and its own copy of the FTP login. MindAttic.Deploy replaces all of that with one registry, projects.json, and one engine. Projects carry no deploy machinery of their own.
The hard part is the linked group: four sites that load their fonts, logos, theme art and effects from the shared MindAttic.Components package on jsDelivr. A linked deploy pins the next release tag in every page, commits, tags and pushes, then checks every CDN URL the pages use, byte for byte, before a single file is uploaded. If any gate fails, nothing reaches the server.
Run it from a terminal with npm run deploy, or from MindAttic.Deploy.exe, a Spectre.Console front end with an interactive multi-select menu. Both drive exactly the same Node pipeline, so there is never a second implementation to drift.
Every run can be previewed with --dry-run, which prints each gate that would stop a real deploy. Unknown flags and missing modes exit with code 2 instead of falling through to a deploy.
Who it's for
--dry-run shows the full plan and every [WOULD ABORT] gate without writing, pushing or uploading anything.Features
projects.json declares every site, its file glob or upload tree, its remote path, its hooks and its linked group. Nothing about deploying lives in the projects themselves.
Deploying any member of a linked group deploys the whole group: pin V<n+1> in every page, run the hooks, stamp, commit, tag, push, verify the CDN, then upload each site in order.
Every package URL must answer HTTP 200 with access-control-allow-origin: * and a content-length equal to the source file. New tags that lag are retried in backoff rounds of about three minutes.
The repos must be on main, clean, in step with origin, with no orphaned local tag and a valid asset manifest. Any failure while preparing restores the working tree to that verified state.
A Last Updated comment is replaced rather than stacked, a BOM survives, and a tag already at HEAD with matching pins is reused instead of minted again.
package-pull, powershell and dotnet-build steps run before a deploy. Any hook can be marked non-fatal, and a deploying hook can be handed a dry-run flag.
Uploads only add and update. The tool never deletes a file on the FTP host, and it never force-pushes.
npm run deploy and MindAttic.Deploy.exe (commands site, uiux, app, all, list, version and an interactive menu) both land in node --use-system-ca src/deploy.js.
The FTP login resolves through MindAttic.Vault, then the MINDATTIC_FTP_JSON environment variable, then a git-ignored local file. It is never written into the registry.
How it works
Checks both repos, the tags, the asset manifest, every page and the FTP credentials before anything changes.
Rewrites each page's MindAttic.Components pin to the release tag, runs the hooks, stamps, and commits Pin MindAttic.Components V<n>.
Tags and pushes, then confirms every asset is live on jsDelivr at that tag.
Sends the committed pages over one FTPS connection and prints a result table, leaving the repo clean and in sync.
Quick start
Node.js and an FTP credential are all the Node pipeline needs. Start with a read-only plan.
The full setup guide lives in the documentation.
> npm install
> npm run deploy -- --site mindattic.com --dry-run
> npm run deploy -- --sites
> npm run deploy -- --helpPart of MindAttic
Deploy is how the MindAttic websites reach the server. It releases the MindAttic.Components asset package together with the MindAttic.Web sites that load it, so a site can never drift onto a stale or missing asset tag.
Its FTP login comes from MindAttic.Vault's FtpCredentialStore, whose JSON is exactly the shape Deploy expects.
Status
Root-site and linked-group deploys work end to end, and the CLI installs through the shared run menu. With Azure retired, the remaining work disables the app targets that can no longer deploy, proves clean dry runs, and adds family logging and up-to-date docs.
Current milestone: Sites-first 1.0: the registry offers only targets that can really deploy, and the docs say what the tool does today.
Next step
Guides, reference and design notes are in the searchable MindAttic documentation. The source, issues and history are on GitHub.