← back to Qwen38 Viewer
DEPLOY.md
21 lines
# Deploy — qwen38-viewer
**This app has NO remote/Kamatera deploy.** It must run on macstudio3, co-located
with Ollama (the model lives in this box's Ollama on :11434; a remote host can't
reach it). The public URL `https://qwen38.agentabrams.com` is a Cloudflare tunnel
(`dw-followup`, ingress in `~/.cloudflared/followup.yml`) → `127.0.0.1:9821`.
So "deploy" = **test-gate → reload the local pm2 process → smoke-test the public host.**
Do NOT run `/deploy` (it would rsync to Kamatera, which is inapplicable here).
```sh
cd ~/Projects/qwen38-viewer
npm test || exit 1 # deploy gate — 18 regressions, must pass
pm2 restart qwen38-viewer --update-env
pm2 save # persist across reboot
# smoke-test the public hostname:
curl -s -o /dev/null -w '%{http_code}\n' https://qwen38.agentabrams.com/health # 200
```
Auth + model config live in the pm2 env (USERS / CODES / KEEP_ALIVE), not in git.