Skip to content

Chore/justfile deploy - #12

Merged
Mnikley merged 3 commits into
mainfrom
chore/justfile-deploy
Oct 28, 2026
Merged

Mnikley merged 3 commits into
mainfrom
chore/justfile-deploy

Conversation

@Mnikley

@Mnikley Mnikley commented Oct 28, 2026

Copy link
Copy Markdown
Member

Deploy the ingest service with just

  • Replaces install-service.sh / update-service.sh with a justfile: just deploy, status, logs, down, uninstall. This breaks things for anyone using the old scripts.
  • The systemd unit is versioned at deploy/graph-lens-lite.service. It's filled in with the deploying user and checkout path at deploy time, so the repo carries no server details.
  • The service runs node server/index.js directly, so the server needs no npm install. A new CI step fails if the committed vendored files in src/ drift from what vendor-libs produces.
  • just deploy re-pins node on every run, so nvm or system node upgrades are picked up on the next deploy.

The ingest service now deploys without npm and serves src/ exactly as committed, so src/lib and the generated assistant prompt modules must match what `npm run vendor-libs` produces.
Breaking for operators: install-service.sh and update-service.sh are removed; `just deploy` replaces both (pull --ff-only with the wrong-branch prompt kept, pin node, render and enable the unit, restart). `just status|logs|down|uninstall` cover the rest.

The unit is versioned at deploy/graph-lens-lite.service with @user@/@group@/@dir@ placeholders filled at deploy time, so the public repo carries no host specifics. It now runs `node server/index.js` directly instead of `npm run serve:api`: no npm install on the server (no electron/playwright downloads) and no vendor-libs run on every start. nvm's default node is copied to deploy/bin/node so nvm upgrades can't break the unit; a system node is symlinked so package upgrades flow through.
@Mnikley
Mnikley merged commit cdfe717 into main Oct 28, 2026
2 checks passed
@Mnikley
Mnikley deleted the chore/justfile-deploy branch October 28, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant