[{"data":1,"prerenderedAt":131},["ShallowReactive",2],{"seo-verification":3,"blog-deploying-nodejs-on-a-vps-a-stable-controlled-runtime-en":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"id":7,"slug":8,"slugs":9,"title":12,"excerpt":13,"readTime":14,"views":15,"isPinned":16,"publishedAt":17,"category":18,"categories":24,"featuredImage":26,"bgImage":27,"posterImage":28,"relatedSolution":29,"intro":31,"sections":32,"ctaTitle":75,"ctaBody":76,"ctaButton":77,"ctaUrl":78,"relatedPosts":79},137,"deploying-nodejs-on-a-vps-a-stable-controlled-runtime",{"fr":10,"en":8,"ar":11},"deployer-nodejs-app-vps","نشر-nodejs-على-خادم-vps-بيئة-تشغيل-مستقرة-ومضبوطة","Deploying Node.js on a VPS: a stable, controlled runtime","Put a Node.js app into production on a VPS with PM2, environment variables, reverse proxy and a restart strategy.",3,0,false,"2026-02-08T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},4,"Development","developpement","bg-warning\u002F10 text-warning","dev",[25],{"id":19,"name":20,"slug":21,"color":22,"icon":23},null,"\u002Fblog\u002Fcovers\u002Fbg.svg","\u002Fblog\u002Fcovers\u002Fdeployer-nodejs-app-vps-poster.svg",{"categorySlug":23,"appSlug":30},"nodejs-stack","A Node.js application in production must survive restarts, expose only what is necessary and log enough to remain maintainable. On a ServOrbit VPS, you keep control over the Node version, the process manager and the reverse proxy. This guide walks through a lean go-live: runtime, variables, long-running service and HTTPS.",[33,37,47,69,72],{"type":34,"title":35,"body":36},"h2","Why host Node.js on a VPS?","Node.js is designed to handle thousands of concurrent connections through its non-blocking asynchronous model, which makes it an ideal choice for REST APIs, real-time applications and microservices. On a VPS, you avoid the restrictions of shared hosting, which often prohibits persistent processes or WebSockets. You also benefit from complete isolation: your npm dependencies, your environment variables and your PM2 configuration are never shared with other tenants.",{"type":38,"title":39,"items":40},"ul","What you can do with Node.js on a ServOrbit VPS",[41,42,43,44,45,46],"Host a REST or GraphQL API accessible around the clock on a dedicated port (e.g. 3000 or 8080)","Deploy real-time applications with WebSockets (chat, push notifications, live dashboards)","Run a Next.js or Nuxt.js backend in SSR (Server-Side Rendering) mode for better SEO performance","Run scheduled tasks (cron jobs) and queue-processing workers with BullMQ or Agenda","Serve several Node.js projects on the same VPS via an Nginx or Caddy reverse proxy with distinct subdomains","Prototype and test microservice architectures without quota constraints or forced restarts after inactivity",{"type":48,"title":49,"steps":50},"steps","Install Node.js on your ServOrbit VPS",[51,54,57,60,63,66],{"title":52,"body":53},"Order a ServOrbit Cloud VPS","Go to the \u002Fvps-cloud page and choose a plan suited to your application workload. For most Node.js applications (API, SSR), a VPS with 2 vCPU and 2 GB of RAM is a good starting point. Finalize the order and wait for the activation confirmation email, which usually arrives in under two minutes.",{"title":55,"body":56},"Access the Marketplace in the client area","Log in to your ServOrbit client area, then navigate to the « My VPS » section. Select the VPS you just ordered and click the « Marketplace » tab in the management panel. There you will find the full list of stacks and applications available for automated installation.",{"title":58,"body":59},"Start the Node.js installation","In the Marketplace, search for the « Node.js Stack » application and click « Install ». The system automatically provisions Node.js LTS (the recommended active version), npm, and PM2 as the process manager to keep your applications running after a restart. The installation takes less than two minutes.",{"title":61,"body":62},"Deploy your first application","Connect to your VPS via SSH (ssh root@\u003Cip-de-votre-vps>), then transfer your project (git clone or scp). From your project directory, run npm install to install the dependencies, then pm2 start server.js --name mon-app to launch your application. By default, your app listens on the port you have defined (e.g. 3000); use pm2 save and pm2 startup for persistence across restarts.",{"title":64,"body":65},"Expose your application via Nginx (reverse proxy)","To make your application accessible on port 80 or 443 with your domain name, configure Nginx as a reverse proxy: create a server block that forwards incoming requests to http:\u002F\u002Flocalhost:3000 (or your app's port). Enable HTTPS with Certbot (Let's Encrypt) by running certbot --nginx -d yourdomain.com. Your API or application is then available at https:\u002F\u002Fyourdomain.com.",{"title":67,"body":68},"Logging in for the first time","This is not an application with a login screen but a runtime environment: connect over SSH to deploy your code (Node.js LTS + PM2). Nginx serves its default welcome page on port 80, and PostgreSQL listens only locally (sudo -u postgres psql, peer authentication).",{"type":70,"body":71},"tip","Pro tip: use PM2 with an ecosystem.config.js file to manage several Node.js applications on the same VPS. This file centralizes environment variables (NODE_ENV, PORT, DATABASE_URL…), the number of instances in cluster mode, and restart strategies. Launch all your apps in a single command with pm2 start ecosystem.config.js and avoid storing your secrets directly in the source code.",{"type":70,"title":73,"body":74},"The official documentation","For advanced configuration, tool-specific options and version changes, refer to the \u003Ca href=\"https:\u002F\u002Fnodejs.org\u002Fdocs\u002Flatest\u002Fapi\u002F\" target=\"_blank\" rel=\"noopener noreferrer\">official Node.js documentation\u003C\u002Fa>. This guide covers going live on a ServOrbit VPS; the vendor documentation remains the reference for fine-tuning.","Deploy Node.js in minutes on a ServOrbit Cloud VPS","Launch your Node.js application on a reliable, scalable infrastructure, with automated installation via our Marketplace and technical support available to assist you.","Launch my Cloud VPS","\u002Fvps-cloud",[80,96,115],{"id":81,"slug":82,"slugs":83,"title":86,"excerpt":87,"readTime":14,"views":15,"isPinned":16,"publishedAt":88,"category":89,"categories":90,"featuredImage":26,"bgImage":27,"posterImage":92,"relatedSolution":93},47,"deploy-a-nuxt-application-on-a-vps",{"fr":84,"en":82,"ar":85},"deployer-nuxt-vps","نشر-تطبيق-nuxt-على-vps","Deploy a Nuxt Application on a VPS","Deploy Nuxt 3 on a VPS: Nitro, Node.js, PM2, Nginx, and SSL. A guide for Vue developers who want to self-host their application.","2026-05-04T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},[91],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fdeployer-nuxt-vps-poster.svg",{"categorySlug":94,"appSlug":95},"development","nuxt-stack",{"id":97,"slug":98,"slugs":99,"title":102,"excerpt":103,"readTime":14,"views":15,"isPinned":16,"publishedAt":104,"category":105,"categories":109,"featuredImage":26,"bgImage":27,"posterImage":111,"relatedSolution":112},39,"deploy-your-applications-with-caddy-on-a-vps",{"fr":100,"en":98,"ar":101},"deployer-avec-caddy","انشر-تطبيقاتك-باستخدام-caddy-على-خادم-vps","Deploy your applications with Caddy on a VPS","Deploy Caddy on your VPS: web server and reverse proxy with automatic HTTPS. A Caddyfile of a few lines is enough to go into production.","2026-05-12T00:00:00+00:00",{"id":14,"name":106,"slug":107,"color":108,"icon":107},"Deployment","deploiement","bg-success\u002F10 text-success",[110],{"id":14,"name":106,"slug":107,"color":108,"icon":107},"\u002Fblog\u002Fcovers\u002Fdeployer-avec-caddy-poster.svg",{"categorySlug":113,"appSlug":114},"application-deployment-devops","caddy",{"id":116,"slug":117,"slugs":118,"title":121,"excerpt":122,"readTime":123,"views":15,"isPinned":16,"publishedAt":124,"category":125,"categories":126,"featuredImage":26,"bgImage":27,"posterImage":128,"relatedSolution":129},41,"deploy-your-applications-with-coolify-on-a-vps",{"fr":119,"en":117,"ar":120},"deployer-avec-coolify","نشر-تطبيقاتك-باستخدام-coolify-على-vps","Deploy Your Applications with Coolify on a VPS","Deploy Coolify on a VPS: installation, HTTPS configuration, Git connection, deploying your first application, databases, backups, and troubleshooting.",10,"2026-05-10T00:00:00+00:00",{"id":14,"name":106,"slug":107,"color":108,"icon":107},[127],{"id":14,"name":106,"slug":107,"color":108,"icon":107},"\u002Fblog\u002Fcovers\u002Fdeployer-avec-coolify-poster.svg",{"categorySlug":113,"appSlug":130},"coolify",1787580996735]