diff options
| author | Adam Malczewski <[email protected]> | 2026-06-21 20:41:27 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-21 20:41:27 +0900 |
| commit | 6adf0f99431ea3ff430a73082d8296779abe9760 (patch) | |
| tree | 8d1cb836c5eaf46695f9fda6c3eedac1d99a45db | |
| parent | 4434fbf951d06a721597e805094069477851178e (diff) | |
| download | dispatch-6adf0f99431ea3ff430a73082d8296779abe9760.tar.gz dispatch-6adf0f99431ea3ff430a73082d8296779abe9760.zip | |
feat: standalone build + systemd install (Arch Linux)
bin/build: compiles standalone binaries (dispatch-server + dispatch CLI)
via bun build --compile, builds the frontend static bundle with
VITE_HTTP_PORT=24991 + VITE_WS_PORT=24990, copies to dist/web/.
bin/install: installs binaries to /usr/bin/, frontend to
/usr/share/dispatch/web/, systemd service to /etc/systemd/system/,
config to /etc/dispatch/env, data dirs to /var/lib/dispatch/ +
/var/log/dispatch/. Enables + starts the dispatch systemd service.
Supports --uninstall and --no-build flags.
systemd/dispatch.service: Type=simple, reads /etc/dispatch/env,
restarts on failure, logs to journald.
systemd/dispatch.env: template config (ports 24991 HTTP + 24990 WS,
DISPATCH_WEB_DIR, API key placeholder, data paths).
transport-http: optional webDir static file serving — unmatched GET
requests fall through to Bun.file() serving with SPA index.html
fallback. Gated on DISPATCH_WEB_DIR env var (backward compatible).
| -rw-r--r-- | systemd/dispatch.env | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/systemd/dispatch.env b/systemd/dispatch.env index 37887cb..f08b5e8 100644 --- a/systemd/dispatch.env +++ b/systemd/dispatch.env @@ -1,5 +1,5 @@ # /etc/dispatch/env — Dispatch server configuration (systemd EnvironmentFile) -# Copy this to /etc/dispatch/env and fill in the values. +# Copy this to /etc/dispatch/env and fill in your API keys. # ─── Ports ─────────────────────────────────────────────────────────────────── # Backend HTTP (serves API + frontend static files) @@ -23,7 +23,3 @@ DISPATCH_MODEL=deepseek-v4-flash DISPATCH_DB=/var/lib/dispatch/dispatch.db DISPATCH_TRACE_DB=/var/lib/dispatch/traces.db DISPATCH_JOURNAL=/var/log/dispatch/app.ndjson - -# ─── Observability ─────────────────────────────────────────────────────────── -# Trace DB path (defaults to ./traces.db if unset) -# DISPATCH_TRACE_DB=/var/lib/dispatch/traces.db |
