Prose/DEPLOY LAYOUT
Appearance
< Prose
Prose deploy layout: joining the shared run menu (PRS-T1132)
Spike note, 2026-11-26. Azure is decommissioned (MAT-T297); Prose's data is local LocalDB only (ConnectionStrings__Prose).
Findings
- run.ps1 does not deploy to Azure. Its 566 lines publish three WPF/web apps (Hub, Writer, Launcher) framework-dependent, single-file, into one flat folder,
C:\Apps\MindAttic\Prose\, and write arun.batthere with its own two-item menu (Deploy & Run / Run). The Hub binds 127.0.0.1 and run.ps1 says it is "never the Azure deployment". - The Azure pipeline is separate:
.github/workflows/azure-deploy.yml(manual, App Servicemindattic-prose, GitHub OIDC). It buildssrc/Prose.Hubitself and never calls run.ps1. Since Azure is gone it is dead, and so is the Hetzner target in MAT-T221 as far as run.ps1 goes: a Hetzner pipeline would also be its own workflow, so it does not constrain the local layout. - The shared run menu (
deploy-lib.ps1:Invoke-AppRun,Publish-AppConfig, templaterun.ps1) deploys toR:\MindAttic\Apps\<repo>\Debug(framework-dependent) and\Release(standalone), found byGet-Plan(.agent\publish.json, else detected Exe/WinExe/Web projects, else a run.ps1 taking-Out). Prose's run.ps1 takes no-Out, and the plain detection would find many more exe projects (Cli, Mcp, V4.Cli, ...) than the three desktop apps, so an explicit plan is needed. - Hard-coded
C:\Apps\MindAttic\Prosepaths that would break on a move:src/Prose.Writer/HubProcess.cs(Hub.exe lookup, error text; also compiled into Launcher)src/tools/launch-app.ps1,src/tools/install-shortcuts.ps1src/Prose.Hub/tools/run.ps1(comments),.prose/hooks/start-prose-hub.ps1,.prose/hooks/factory-start.ps1.agent/commands/{launch,redeploy,kdp-publish}.md,.claude/skills/{launch,redeploy}/SKILL.md, README.md, src/README.md, docs/CONDUIT.md- KdpPublish (own repo) deploys to
R:\MindAttic\Apps\KdpPublish\{Debug,Release}; the Launcher'sKdpPublishDirpoints at the Release copy (MAT-T309).
- Flat layout constraint. Hub, Writer and Launcher share one folder: Hub owns
wwwroot\, Writer and Launcher findHub.exebeside them. The sharedPublish-DotNetalready publishes several projects into one folder, but Hub is a Web project (Release = self-contained, not single-file) while Writer/Launcher are single-file; in one folder this works but the Hub is long-lived and Writer/Launcher must not stop it when only they redeploy (run.ps1's per-app stop, change detection and-Startsemantics).Publish-AppConfigstops everything running from the target and swaps the whole folder, which would kill a running Hub on every Writer redeploy.
Recommendation
Prose should join the shared run menu, but via the override mechanism, not by adopting the template wholesale.
- Add
.agent/publish.json(kind: dotnet, projects Hub, Writer, Launcher) and.agent/run.json(Exe: Launcher.exe; Writer and Hub reachable through the Launcher) so Redeploy builds Debug and Release intoR:\MindAttic\Apps\Prose\{Debug,Release}. - Keep run.ps1's per-app change detection, Hub health check and
-Startas a thin script behindPreBuild/PostBuild, or reduce run.ps1 to the standard template and accept a full-folder swap (Hub restarts on redeploy) once the Hub health check lives in aPostBuild. - Make the apps locate each other relative to their own folder (
AppContext.BaseDirectory) first, with the R:\ default path second, so Debug and Release copies each use their own Hub. - Both configs run the Hub on 127.0.0.1 and the same LocalDB, so Debug and Release must not both run a Hub at once: pick a different port or refuse to start a second.
Azure leftovers found in Prose — status as of PRS-T1465 (2026-12-02)
Resolved by PRS-T1136 (whole-file removal + comment cleanup) and PRS-T1408 (audio off blob storage):
.github/workflows/azure-deploy.yml— removed.scripts/gspl_db.ps1— repointed at LocalDB; Azure SQL / Entra-token path dropped..prose/hooks/start-prose-hub.ps1,run.ps1— Azure comments dropped.src/Prose.Hub/Hosting/HubHosting.cs— no Azure references left (Hosting:Mode=Public itself stays for a possible future Hetzner public mode, MAT-T221; nothing Azure-specific there now).engine/data/graph/*_graph.json— the earlier "mentions azure" hits are all the surname "Mazurek" substring-matching "azure"; not real references, nothing to do.
Still open: src/Prose.Core/Data/Sql/delete_captured_gear_cluster_jsons.ps1 line ~23 still describes "Azure SQL, access-token sign-in" in a comment; needs the same LocalDB rewrite gspl_db.ps1 got. Tracked as a PRS-T1465 follow-up task.
Follow-up tickets
- Prose:
.agent/publish.json+.agent/run.jsonso the shared menu deploys Hub/Writer/Launcher to R:\MindAttic\Apps\Prose{Debug,Release}. - Prose: apps find sibling exes relative to their own folder; retire the C:\Apps\MindAttic\Prose paths (HubProcess.cs, launch-app.ps1, install-shortcuts.ps1, hooks, skills, docs).
- Prose: decide run.ps1 fate (thin wrapper around deploy-lib with Hub health check in PostBuild) and stop a Writer redeploy from killing the Hub.
- Prose: remove Azure leftovers (list above); repoint scripts/gspl_db.ps1 at LocalDB. Done (PRS-T1136) except
delete_captured_gear_cluster_jsons.ps1's stale comment, above. - Prose: Debug/Release Hub coexistence (port or single-instance rule).
Part of Prose.
From Prose/docs/DEPLOY_LAYOUT.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.