Black Friday

Up to 80% off web hosting and WordPress plans until 30 NovemberUp to 80% off

See plans
HOSTING

Deploying a Node.js app

Last updated

IN SHORT

Deploy Node.js apps on Flashcloud shared and WordPress hosting using cPanel's Setup Node.js App. You select an LTS Node version, define your application root folder, and set your startup file. cPanel manages the running process, while each application stays pinned to its chosen Node version.

Node.js apps run on shared and WordPress hosting through cPanel's Setup Node.js App. You pick a Node version, tell it where your app lives and how to start it, and cPanel handles the process for you.

Create the application

  1. Open cPanel from your hosting service. See Accessing cPanel if you need the way in.
  2. Find Setup Node.js App under Software.
  3. Create an application and set:
    • A Node version. We keep recent LTS versions available.
    • The application root, the folder your app code lives in.
    • The startup file, the entry point that boots your server (for example app.js or server.js).
  4. Start the app. cPanel manages the process from there.

The version your app runs on is pinned per application. Adding a new app on a newer Node version does not disturb an existing app pinned to an older one.

Get your code onto the server first

Put your application files in place before you start it. You can upload with the portal file manager or an FTP/SFTP client, or deploy from a repository. See Uploading files to your hosting and What programming languages and runtimes do you support for the full picture of runtimes and upload paths.

Dependencies

Your dependencies come from your package.json. Install them before starting the app so the modules your startup file requires are present.

Scheduled work

If your app relies on scheduled tasks rather than a long-running process (a queue worker triggered on a timer, a nightly cleanup), you can drive those from cron. See Setting up cron jobs for schedule syntax and how to run a command on an interval.

When to move to a VPS

The Setup Node.js App covers most standard apps well. For more demanding workloads, high concurrency, long-running background processes, or custom build toolchains, a managed VPS gives you the dedicated resources for the job. Tell our team what the app needs and we provision it (our VPS is fully managed, so there is no root level to configure yourself).

If the app will not start

  • Wrong startup file: confirm the entry point matches the file that actually boots your server.
  • Missing modules: make sure dependencies were installed against the same Node version the app is set to run on.
  • Application root mismatch: the root must point at the folder that contains your app code and package.json.

Common questions

Why will my Node.js app not start?

Check your startup file, application root, and dependencies. Your entry point must match the file that boots your server, the application root must hold your code and package.json, and all modules must be installed against your app's chosen Node version.

Can I run different Node versions on the same hosting account?

Yes. Node versions are pinned per application in cPanel. Setting up a new app on a newer Node version will not affect existing apps pinned to older versions.

How do I run scheduled tasks in my Node app?

Use cron jobs for scheduled work like timer-based queue workers or nightly cleanups. Set your schedule syntax and intervals in cPanel rather than relying on a long-running process.

When should I move my Node app to a VPS?

Move to a managed VPS when your app requires high concurrency, demanding workloads, long-running background processes, or custom build toolchains. Flashcloud provisions and manages the server, so there is no root configuration required on your end.

CAN'T FIND IT?

Real humans answer fast.

Hosting with us? Open a ticket and a real person replies - no scripts, no upsells. Still choosing a host? The same team is included with every plan, from day one.