Guides

Node.js hosting in Mumbai: deploy an Express, NestJS or Next.js app

How to host a Node.js app (Express, NestJS, Next.js) in Mumbai on HostRob: port 3000, pm2, environment, domains and SSL.

Short answer

To host a Node.js app on HostRob, create a Node.js container, upload your app to /home/appuser/app, make it listen on port 3000, and start it with pm2 (via .hostrob/ecosystem.config.js) or npm start. The app runs in its own container in Mumbai with automatic SSL. Plans start at ₹299 a month; most production APIs fit Pro or Business.

The one rule: listen on port 3000

HostRob routes your domain to port 3000 inside the container. Read the port from the environment with a 3000 fallback, for example app.listen(process.env.PORT || 3000).

Deploy steps

  1. Create a Node.js container in the panel.
  2. Upload your code to /home/appuser/app by SFTP, the file manager or a ZIP upload. Skip node_modules; it is installed on the server.
  3. Optional: add .hostrob/ecosystem.config.js to run under pm2 (cluster mode, memory limits, log rotation). Without it, the platform runs npm install and npm start.
  4. Restart the app from the panel, or over SSH run sudo supervisorctl restart nodeapp.
  5. Add your domain in the panel and point an A record to the IP shown; SSL is automatic.

Next.js

Run next build, then start with next start -p 3000 (or set it in your pm2 file). Static exports can be served as a static site instead.

Which plan

A small API or bot: Pro (₹699/month: 1 vCPU and 1 GB per container, 15 GB NVMe). An app with a database and real traffic: Business (₹1,499/month: 2 vCPU and 2 GB per container, 30 GB NVMe) or Business Plus (₹7,990/month: 4 vCPU and 6 GB per container, 80 GB NVMe), which add managed PostgreSQL and MongoDB. Each app can live in its own container, up to the plan's container count.

Questions

Does HostRob support WebSockets?

Yes. Traffic reaches your container over HTTP/1.1 and HTTP/2 through Traefik, and WebSocket upgrades on port 3000 work.

Can I run background workers or cron jobs?

Yes, run them under pm2 inside the same container, within the plan's CPU and memory caps.

Which Node.js versions are available?

Current Node.js LTS releases.

More guides

Updated 21 October 2026. Written by the HostRob team, FutureFist Tech Solutions LLP.

Try it on HostRob

Your first container is ready in under a minute. 14-day money-back guarantee.