Categories
HOSTING123 BLOG

Cheap Node.js Hosting: What to Check (PM2, SSH, Ports)

Cheap Node.js hosting can work well for a small Express API or portfolio project. First, check how the host starts your app. Then check what you can do over SSH. Finally, ask how HTTPS requests reach your app. Compare Hosting123’s Node.js hosting plans →

What should you check before buying cheap Node.js hosting?

Start with the steps you follow when you deploy your app. For example, you may install dependencies, run a build, and restart the server. Next, check any features your app needs in production. A live dashboard may need WebSockets. An app that processes uploads may also need a separate worker.

CheckWhat to ask before you buy
Node.js versionCan I use the same Node.js version to build and run my app?
Process managementWhat starts my app? How does it recover after a crash or reboot?
SSH accessCan I install packages, run builds, and read logs?
Ports and HTTPSHow does my domain connect to the app’s internal listener?
WebSocketsDoes the proxy support WebSockets? What idle timeout does it use?
Background workersCan a separate worker keep running alongside the web app?
Resource limitsHow much CPU and memory can I use during builds and at runtime?

Do you need PM2 to run a Node.js app?

For a single Express app, your host’s application manager may handle the process. For example, cPanel’s Application Manager uses Passenger to manage apps and route requests. Ask how to restart your app after a deployment. Also, find out where to read error logs. cPanel Application Manager documentation

However, your deployment may already rely on PM2. In that case, ask whether PM2 keeps running after you close SSH. Then check how it restores processes after a server reboot. PM2’s standard startup setup can require administrator access. PM2 startup documentation

What should SSH access let you do?

First, list the commands you run during deployment. For example, an npm project with a lockfile may use npm ci. Then you might run npm run build. Check whether your hosting account lets you run both commands. Also, ask how much memory the plan gives you during builds.

Next, find out where you can set environment variables and read logs. Check package.json or .nvmrc for your project’s Node.js version. Finally, confirm that the SSH shell and application manager use a compatible version.

Does your Node.js app need a public port?

A typical HTTP app can use an HTTPS address such as https://api.example.com. A reverse proxy receives requests and forwards them to your app’s internal listener. For example, your local app might listen on port 3000. In production, follow the host’s instructions for the port or listener.

However, a chat app or live dashboard may need WebSockets. In that case, ask whether the proxy handles WebSocket upgrades. Also, check how long it keeps idle connections open. If your project needs a custom public TCP port, ask about that exact port.

When does a low-cost plan make sense?

A small portfolio API may need one web process, a database, and an HTTPS subdomain. For this setup, cheap Node.js hosting can work well. First, confirm that the plan supports your Node.js version. Then check that it has enough memory to build and run the app.

An image-processing app, however, may need a separate worker. Ask whether the host lets both processes run at the same time. If you need a separate worker service, add its cost when you compare plans.

Frequently asked questions

Does SSH access mean I can run PM2?

SSH gives you shell access. However, your hosting plan determines whether PM2 and other background processes can continue running after logout. Therefore, ask the provider who manages the startup settings after a server reboot.

Can I host a Next.js app on a shared plan?

You can host a static export on a compatible static hosting plan. However, some Next.js applications require a Node.js server in production. In that case, check the required build and start commands. Also, confirm that the plan supports your environment variables and memory requirements.

How should I compare Node.js hosting prices?

First, compare the initial payment and renewal price for the same billing period. Next, add the cost of any required database or separate worker. Finally, compare the total price of every service your application needs.

Semir Reyhan
Semir Reyhan /

Semir Reyhan leads content and digital growth initiatives at Hosting123. He creates clear and up-to-date content about web hosting, WordPress, website performance and digital infrastructure to help users make informed decisions.

Leave a Reply

Your email address will not be published. Required fields are marked *