Deploy Node.js on Your Own Server

Deploy any Node.js application — Express, Fastify, Hono, or custom — with automatic HTTPS and managed databases on your own VPS.


Quickstart

From your project root, deploy with your preferred package manager:

npx @temps-sdk/cli up

Temps detects your package.json, installs dependencies, and runs your start script. Your app is live with HTTPS in about 2 minutes.


What Temps Handles Automatically

FeatureHow Temps handles it
Buildnpm install && npm run build (if build script exists)
StartRuns npm start
HTTPSLet's Encrypt certificate, auto-renewed
PortReads PORT env var, defaults to 3000
WebSocketsFully supported via reverse proxy
Health checksHTTP health check on your configured path
Preview deploymentsEvery PR gets its own URL

Managed Services

Add a PostgreSQL or Redis database from Project → Services → Add Service, or via CLI:

# Add PostgreSQL
bunx @temps-sdk/cli environments vars set DATABASE_URL "postgres://..." -e production

See Deploy with a Database for the full guide.


Environment Variables

bunx @temps-sdk/cli environments vars set NODE_ENV production -e production
bunx @temps-sdk/cli environments vars set DATABASE_URL "postgres://..." -e production

Next Steps

Was this page helpful?