Get a free website with any plan

See how
HOSTING

Deploying a Node.js app

IN SHORT

Flashcloud deploys Node.js apps on shared and WordPress hosting through cPanel's Node.js Selector: you pick a Node version, set the application root and startup file, then start the app. cPanel manages the process, and the Node version is pinned per application.

Node.js apps run on shared and WordPress hosting through cPanel's Node.js Selector. 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 Node.js Selector 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 Node.js Selector 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

How do I deploy a Node.js app on Flashcloud hosting?

Open Node.js Selector in cPanel, under Software. Create an application, set the Node version, application root, and startup file, then start it. cPanel handles the process from there.

Why won't my Node.js app start?

The three usual causes are a wrong startup file that doesn't match your actual entry point, missing modules because dependencies weren't installed against the app's Node version, or an application root that doesn't point to the folder containing your code and package.json.

Do I need to install my dependencies manually?

Yes. Your dependencies come from package.json, and you need to install them before starting the app so the modules your startup file requires are actually present.

Can I run scheduled tasks like a queue worker or nightly cleanup?

Yes, drive those from cron instead of a long-running process. Set up a cron job to run the task on an interval.

When should I move my Node.js app to a VPS instead?

Move to a VPS for demanding workloads: high concurrency, long-running background processes, or custom build toolchains. Flashcloud's VPS is fully managed, so you tell the team what the app needs and they provision it, no root-level configuration required.

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.