Deploy on-prem via SSH
5 min · 3 steps
Ship to your own server. Avery rsyncs the build + runs your post-deploy script over SSH.
On-prem deploys are session-only — Avery doesn't persist SSH credentials. Provide host, user, deploy path, and an optional post-deploy command (e.g. `pm2 restart app`). The CLI builds locally first (`pnpm build`), rsyncs `.next/` + `package.json` + `prisma/`, then runs your post-deploy hook over SSH. stdout/stderr stream to the Console.
Steps
- Open Deploy → SSH.
Form fields for host, user, deploy path, post-deploy command.
- Fill in your SSH details.
Use a key-based login configured in your `~/.ssh/config` so Avery doesn't need a password. The fields stay session-only — they're not saved to disk.
- Click 'Deploy via SSH'.
Avery builds, rsyncs, and runs your post-deploy command over SSH — every step's output streams in the Console.
Live recipes need the desktop
This article is a static preview. The in-app Help sidecar inside Avery NXR can fire each step against your live project — install the desktop to use it interactively.