Deploying Node.js Apps
Deploying Node.js Apps
The Node.js Deploy app runs your Node.js application as a systemd service under the site owner's Linux user and puts your web server (Nginx, Apache2 or OpenLiteSpeed) in front of it as a reverse proxy. Node.js versions are managed with nvm.
Before you start
- Install Node.js Deploy: tick it in the first-login setup wizard, or install it from the Vinza Store (top bar). The Node.js option of the Create Website form appears once it is active.
- Administrators get Server → Node.js (
/apps/node-deploy/) to manage Node.js versions, and set resource limits per app. - A website owner can deploy their own Node.js site (within the Node.js versions the administrator has installed). Everything they do is limited to their own site and runs as their account.
When you pick a remote node in the Create Website form, the app runtimes (Python, Node.js, Go, Proxy) are disabled there. A hosting account that lives on a node is different: its Node.js websites are created on that node, and Node.js Deploy runs every step (npm, systemd unit, web-server rules) on that node.
Step 1: Create the website
- Go to Server → Websites and create a new website with the Node.js runtime.
- Pick the Node.js framework for the optional starter project — Express, Fastify or Plain (http) — and the Node.js version (or the system default).
- Tick Create project skeleton for a starter
package.json+index.js, and Install dependencies to runnpm installfor it. Existing code is never overwritten. - Save. You land on the app's deploy page, where a Quick start card runs the requested setup (Run now or Skip). The site shows a holding page until the app is deployed.

Step 2: Upload your code
Put your app in /home/<user>/web/<domain> with Git Manager, the File Manager, or SFTP/FTP — or link the repository on the deploy page's Git tab (see below). Your app must listen on the port given in the PORT environment variable:
const port = process.env.PORT || 3000;
app.listen(port, '127.0.0.1');Open the site's deploy page — Websites → your site → tab Overview → Extensions → Node.js Deploy. On the Setup tab, the Dependencies card runs Install dependencies (npm install from your package.json); you can also add single packages there. If your project has a build step (SvelteKit, Next.js, Nuxt, Vite and similar), Run build runs npm run build as the site owner.
Step 3: Deploy
On the Deployment tab:
- Check the Entry point (leave it blank to auto-detect) and pick the Node.js version. A pinned version that is not installed refuses the deploy.
- Leave the Port on
0to get a free port in the 8300–8399 range. A port you type yourself must be between 1024 and 65535 and not used by another app. - Press Preview service to see the systemd unit, then Deploy.
The unit sets PORT and NODE_ENV=production, is written to /etc/systemd/system/vp-node-<domain>.service (every character that is not a letter or digit becomes a dash), and is enabled and started. If the service then fails to start, the deploy says so. The web server vhost is switched to proxy to it.

Running the app
- Start/Stop and Restart are at the top of the deploy page; Reload (which restarts the service) and Logs are on the Deployment tab. Logs shows the app's output, kept in the owner's
~/logs/<domain>-node.log. - After uploading new code by hand, install dependencies or run the build if needed, then restart. A Git deploy does all of that for you.
- Edit settings reopens the deploy form with the current port, entry point and Node.js version; press Save & re-deploy. Re-deploying keeps the current port; tick Pick a new free port instead for a new one.
- Remove deletes the systemd service and the web-server config of the deployment, together with its environment file, deploy state and log files. Deleting the website removes its service automatically.
Configuration
The Configuration tab has these sections:
- Static (Static & Media) — lets the web server serve static and uploaded files directly: point each URL prefix at its folder and press Save aliases. Keep Directory indexing off for production.
- Environment — environment variables for the app (Add variable, Save variables). They are stored in a file only the site's account can read and loaded by systemd; values are hidden after saving.
PORTis set by the panel. - Limits — Resource limits set by an administrator: a soft and a hard memory limit, a CPU quota, and the Node.js heap (
--max-old-space-sizethroughNODE_OPTIONS; empty means 75% of the hard memory limit). The website owner sees them read-only. - File Manager and Info — the app folder in the File Manager, and the app's details.
Deploy from Git
The Git tab deploys the app straight from a repository:
- Enter the Repository URL and Branch and press Link repository. Use
https://for public repositories, orgit@host:owner/repo.gitwith the deploy key for private ones (Generate deploy key; it is the site account's key, shared with Git Manager). Credentials in the URL are not accepted. - Press Deploy now. The branch is fetched and the app folder reset to it (local changes to tracked files are discarded), then
npm installruns, followed bynpm run buildwhenpackage.jsonhas a build script, and the app is restarted. Every step runs as the site's account.
- Push to deploy gives the app its own webhook URL and HMAC secret for GitHub, GitLab or Bitbucket. Unsigned requests are refused and only pushes to the linked branch deploy.
- Releases lists the recent deploys; you can Roll back to one of the last 5 successful ones. A rollback checks that commit out again and rebuilds it (npm install + build), then restarts the app.
Node.js versions
On Server → Node.js, Node.js runtimes lists the versions installed via nvm (under /opt/nvm). Install a version offers the LTS majors 22, 20 and 18. The Updates card shows installed majors that are behind the newest release and updates them; apps on that major use it after their next restart. Apps pick their version at deploy time; apps using a removed version must be redeployed on another one.