MindAttic/MindAttic.Deploy
Command-line tool

MindAttic.Deploy.

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.

Active development Node.js basic-ftp FTPS C# .NET 10 Spectre.Console jsDelivr

What it is

Deploys that refuse to ship a broken page

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

  • Owners of several small static sitesOne registry entry per site replaces a deploy script and a credential copy in every repo.
  • Anyone serving shared assets from a CDNThe linked flow proves every asset is live at the pinned tag before the pages that reference it go up.
  • People who want to see before they ship--dry-run shows the full plan and every [WOULD ABORT] gate without writing, pushing or uploading anything.

Features

What you get

01

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.

02

Linked releases

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.

03

A real CDN gate

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.

04

Strict preflight

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.

05

Idempotent stamps and pins

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.

06

Hooks before upload

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.

07

Never destructive

Uploads only add and update. The tool never deletes a file on the FTP host, and it never force-pushes.

08

Two front doors, one engine

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.

09

Credentials from Vault

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

What a linked deploy does

  1. Preflight

    Checks both repos, the tags, the asset manifest, every page and the FTP credentials before anything changes.

  2. Pin and commit

    Rewrites each page's MindAttic.Components pin to the release tag, runs the hooks, stamps, and commits Pin MindAttic.Components V<n>.

  3. Tag, push, verify

    Tags and pushes, then confirms every asset is live on jsDelivr at that tag.

  4. Upload

    Sends the committed pages over one FTPS connection and prints a result table, leaving the repo clean and in sync.

Quick start

Preview a release

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.

shell
> npm install
> npm run deploy -- --site mindattic.com --dry-run
> npm run deploy -- --sites
> npm run deploy -- --help

Part of MindAttic

One piece of a bigger workshop

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

Where it stands

Active development

Sites pipeline in daily use; trimming retired targets

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

Ship every site from one place

Guides, reference and design notes are in the searchable MindAttic documentation. The source, issues and history are on GitHub.