Repository navigation
Remove the Loco server (server/): app/ is the only server - #132
Conversation
The visualci_server crate and its migration crate, docker/server.Dockerfile, the server image build, and the test job's Postgres and JSON/email snapshot steps go. The visual job takes its JSON snapshots from app/'s golden files and its email snapshots from app/'s emails test (VISUALCI_EMAIL_SNAPSHOTS). Docs, AGENTS.md and scripts/on-dev describe app/ as the only server. server/frontend stays where it is. Co-Authored-By: Claude <noreply@anthropic.com>
VisualCIdocspring/visualci · build #115 · 10 changed, 19 added, 13 removed, 310 unchanged · approved by visualci features agent for Nathan Broadbent This PR vs base: 10 changed, 19 added, 13 removed since #111, across 1 build
Removed: docspring/visualci · journeys · build #113 · 12 unchanged · no changes This PR vs base: nothing since #109, across 1 build Updated as builds change. Agents can review with VisualCI's MCP tools. |
Production has run app/ (Laravel Rust) since the 3 Dec 2026 cutover, and the visual job has run against it since #117. This PR deletes the Loco server and everything that only served it. Nothing is kept for compatibility.
Removed
visualci_servercrate: everything underserver/exceptserver/frontend/. That covers src, config, tests, examples,migration/(themigrationcrate),.claude/skills/loco,.cargo,.rustfmt.toml,.gitignore, README and AGENTS.md. Neither app/ nor server/frontend used any of it. The only cross-reference wassite.mjsreading the rootCargo.toml, and that file stays.Cargo.toml: members are now justcrates/*. The workspace depsloco-rsandoauth-provider{,-axum,-mcp,-postgres}are dropped because nothing else used them.Cargo.lock: regenerated on a build box. 302 packages were removed, and nothing was added or changed version.docker/server.Dockerfile.docker/app.Dockerfileno longer needs itssedthat cutserverout of the workspace members.ci.yml):serverimage step and theserveroutput are gone fromimages.testno longer has a Postgres service or theVISUALCI_JSON_SNAPSHOTS/VISUALCI_EMAIL_SNAPSHOTSenv and artifact. It now runs onlycargo test --locked --workspacefor crates/*.testused to make: theappjob now writes the emails (VISUALCI_EMAIL_SNAPSHOTS, added toapp/tests/emails.rswith the old naming and app URL) and uploads them asemail-snapshots. Thevisualjob now needsappinstead oftest. It uploadsapp/tests/golden/{api,mcp}asjson/(same<kind>/<test>/<name>.jsonlayout) and the emails asemails/.imagesnow also needsapp: production's server tests now gate the deploy, as the server's tests did before.scripts/on-dev:testno longer forces the docspring-dev DB lease, because root tests need no DB. ArunnamingDATABASE_URL/55433 still does. The header and usage line range are updated.docs/deploy.mdis rewritten for the app image and its workloads (web/worker/scheduler/migrate, from talira-ai/infrak3s/resources/visualci/laravel), the environment, the scheduler's jobs and heartbeats, and the commands.docs/design.mdpoints module paths at app/ and describes the stack as Laravel Rust.docs/design-storage.mdnow describes the Loco server in the past tense.SERVER_PORT),server/frontend/README.md, the public self-hosting page (app image, its four commands, its env, and the production boot checks), and thevite.config.tsproxy, which now readsSERVER_PORTinstead of Loco'sPORT.scripts/screenshots/pages.mjshas its comment updated.app/Cargo.tomland a few app test/ui comments no longer point atserver/...paths.Kept on purpose
server/frontend/stays where it is. Other open PRs touch it. A possible follow-up is to move it to a top-level folder such asfrontend/, along withdocker/app.Dockerfile, the CI paths andskills.mjs. Another possible follow-up is folding app/ into the root workspace now that the Loco server's JSON can't be affected.References that remain (repo-wide grep for
visualci_server,server/src,server/config,server/tests,server.Dockerfile,loco/Loco,-p visualci_server)server/frontend/content/blog/laravel-rust-rewrite.md: the blog post about moving off Loco. This is history and stays.app/src/http/ui/projects.rs:59andapp/src/mcp/mod.rs:878: comments saying a taken slug answers with Loco'sEntityAlreadyExistswording. They're still true of the answer's text.app/src/http/ui/mod.rs,app/tests/ui.rsandapp/tests/golden/mod.rs: "ported from the Loco server's ..." provenance comments, which are true. Many app/ comments also say "ported from today's server". You said those can stay.docs/deploy.mdlists the Loco staff tasks that have no app/ command (see below).docs/design-storage.mdmentions the Loco server's queue in the past tense.loco/locoas the Postgres user in ci.yml (visual and journeys services, journeys'DATABASE_URL) and inscripts/ci/visual.sh's defaultDATABASE_URL. This is the role name docspring-dev's Postgres on 55433 uses, so visual.sh's default works there unchanged. It's not the framework.Cargo.lockhas noloco/sea-ormentries left.Gaps this exposes (app/ doesn't have these yet, and the docs now say so)
user:set-staff,org:add-member,org:delete,org:set-planandstripe:setupwere Loco tasks. The Stripe products are still created on first use./mcp/adminendpoint and noadminOAuth scope. design.md's Admin tools section is now marked as the design.For talira infra
talira-ai/infra
k3s/resources/visualci/kustomization.yamlalready pins onlyghcr.io/docspring/visualci-appandvisualci-renderer, and a code search forvisualci-serverthere finds nothing. CI stops pushingghcr.io/docspring/visualci-server:<sha>after this PR. The ghcr package can be deleted whenever you like, since nothing pulls it.VisualCI review note
The visual build's
json/snapshots now come from app/'s golden files, andemails/from app/'s renderer. Snapshots the Loco tests recorded that have no golden file will show as removed, and email text where app/'s wording differs will show as changed. Both are expected.Checks (agents-build-1)
cargo fmt --all --check,cargo clippy --locked --workspace --all-targets -D warnings,cargo clippy --locked -p snapshot-diff --no-default-featuresandcargo test --locked --workspaceall pass, with no database.cargo fmt --check,cargo clippy --locked --all-targets -D warningsandcargo test --lockedpass, 248 tests. The email writer produced the HTML and text pair for every sample.pnpm install --frozen-lockfile,pnpm build(with wasm),vitest run(41 tests) andnode scripts/skills.mjs --checkpass. Noskill:page changed, so there's no plugin bump.Not merging: Nathan merges under the lock.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.