This guide puts an Astro site or a Node.js app on a server you own, with HTTPS, in three ways: one command from your laptop, Git on every push, or your AI coding agent. Pick the one that fits.
You need: a Vantuly account with a connected server. Pick the Node.js stack (NGINX and Node.js 24, no PHP or MariaDB) when you connect it; otherwise Node.js 24 is installed on the first deploy that needs it.
How each kind of project runs
Section titled “How each kind of project runs”| Astro (static output) | Node.js app | |
|---|---|---|
| Build | npm ci && npm run build |
npm ci && npm run build by default |
| Serves | NGINX serves dist/ |
Your app, as a systemd service behind NGINX |
| Node process | None stays running | Runs all the time on the port in PORT |
| Failed deploy | The live site keeps running | The app must listen within 30 seconds, or the deploy switches back to the previous release |
A server-rendered Astro site is a Node.js app: deploy it as a Node.js site.
Option A: one command from your laptop
Section titled “Option A: one command from your laptop”-
Install the CLI and sign in:
Terminal window npm install -g vantulyTerminal window vantuly login -
Astro or another static site: build it, then deploy the output folder:
Terminal window npm run buildTerminal window vantuly deploy distNode.js app: deploy the project folder. It is uploaded as source and built on the server:
Terminal window vantuly deploy . -
The CLI prints the live address, for example
https://my-blog.vantuly.site. The first deploy creates the site; later deploys from the same folder update it.
.git, node_modules and .env files are never uploaded. Set secrets with vantuly env set KEY=value instead. If something breaks, vantuly logs shows the build log and vantuly rollback puts the previous release back. See Deploy a site and Commands.
Option B: deploy from Git on every push
Section titled “Option B: deploy from Git on every push”- Click New site and choose Astro or Node.js.
- Connect your repository: add the Deploy key and Deploy webhook Vantuly shows, or on GitHub use a GitHub App and pick the repository from a list.
- Turn on Auto-deploy on push.
Each push builds a new release next to the running one and switches over only when the build succeeds. Change the build in the deploy script and the start command in Settings → App. See Deploy from Git.
Option C: let your AI agent deploy
Section titled “Option C: let your AI agent deploy”Connect the vantuly MCP server to your coding agent. For Claude Code:
vantuly mcp install claudeThen ask the agent to build and deploy the project. It calls tools like deploy and deployment_logs, reads the build log if a deploy fails, fixes the cause and deploys again. Codex, Cursor, OpenCode, Gemini CLI and many others work too: see AI agents and MCP server.
Add your domain
Section titled “Add your domain”Run vantuly domains add example.com, or add it on the site’s Domains tab. If your DNS is on Cloudflare and connected to Vantuly, the records are created for you; otherwise point an A record at the server. HTTPS follows once DNS matches. See Add your own domain.
Good to know
Section titled “Good to know”- Node.js apps are limited to 512 MB of memory and can write only inside their home folder.
- Turn on Worker for apps that serve no HTTP, such as queue consumers or bots.
- While a Node.js app is down, visitors see a placeholder page instead of an error.
- Next.js deploys with the CLI as a static export (
output: "export", thenvantuly deploy out). For server rendering, ship it with a Dockerfile as a Docker site.
Pricing · Terms of Service · Privacy · Refund Policy · support@vantuly.com